Darcula looks weid since last (treesitter?) upgrade. Added a few colorschemes and shortcut to access them

This commit is contained in:
Fabian Schmidt 2022-10-29 14:22:42 +02:00
parent 966adc7817
commit 7cffe20d81
5 changed files with 25 additions and 4 deletions

View File

@ -60,6 +60,9 @@ end
function maps.init() function maps.init()
vim.g.mapleader = " " vim.g.mapleader = " "
map('n', '<leader>b', '<cmd>NvimTreeToggle<CR>')
map('n', '<leader>cc', '<cmd>Telescope colorscheme<CR>')
maps.toggleGoyo() maps.toggleGoyo()
maps.term() maps.term()
maps.telescope() maps.telescope()

View File

@ -7,8 +7,19 @@ require 'paq' {
-- Theme -- Theme
'kyazdani42/nvim-web-devicons'; 'kyazdani42/nvim-web-devicons';
'rktjmp/lush.nvim'; { 'folke/tokyonight.nvim', { branch = 'main' } };
'tiagovla/tokyodark.nvim';
'rebelot/kanagawa.nvim';
'sainnhe/everforest';
'navarasu/onedark.nvim';
'rose-pine/neovim';
'rmehri01/onenord.nvim';
'EdenEast/nightfox.nvim';
'tanvirtin/monokai.nvim';
'catppuccin/nvim';
'briones-gabriel/darcula-solid.nvim'; 'briones-gabriel/darcula-solid.nvim';
'rktjmp/lush.nvim';
-- treesitter -- treesitter
'nvim-treesitter/nvim-treesitter'; 'nvim-treesitter/nvim-treesitter';

View File

@ -72,6 +72,10 @@ function lsp.init()
capabilities = capabilities, capabilities = capabilities,
on_attach = lsp_attach on_attach = lsp_attach
}) })
lspconfig.svelte.setup({
capabilities = capabilities,
on_attach = lsp_attach
})
end end
return lsp return lsp

View File

@ -13,7 +13,7 @@ end
function theme.initStatusline() function theme.initStatusline()
require('lualine').setup { require('lualine').setup {
options = { options = {
theme = 'onedark' theme = 'kanagawa'
} }
} }
end end
@ -25,13 +25,16 @@ end
function theme.initColorscheme() function theme.initColorscheme()
vim.g.limelight_conceal_ctermfg = 'gray' vim.g.limelight_conceal_ctermfg = 'gray'
vim.cmd 'colorscheme darcula-solid' vim.cmd 'colorscheme kanagawa'
vim.cmd 'set termguicolors' vim.cmd 'set termguicolors'
vim.opt.syntax = 'on' vim.opt.syntax = 'on'
require('nvim-treesitter.configs').setup { require('nvim-treesitter.configs').setup {
highlight = { highlight = {
enable = true, enable = true,
additional_vim_regex_highlighting = false, additional_vim_regex_highlighting = false,
},
indent = {
enable = true
} }
} }
end end

View File

@ -9,7 +9,7 @@ require('nvim-tree').setup {
ignore_ft_on_setup = {}, ignore_ft_on_setup = {},
open_on_tab = false, open_on_tab = false,
hijack_cursor = false, hijack_cursor = false,
update_cwd = false, update_cwd = true,
hijack_directories = { hijack_directories = {
enable = true, enable = true,
auto_open = true, auto_open = true,