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()
vim.g.mapleader = " "
map('n', '<leader>b', '<cmd>NvimTreeToggle<CR>')
map('n', '<leader>cc', '<cmd>Telescope colorscheme<CR>')
maps.toggleGoyo()
maps.term()
maps.telescope()

View File

@ -7,8 +7,19 @@ require 'paq' {
-- Theme
'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';
'rktjmp/lush.nvim';
-- treesitter
'nvim-treesitter/nvim-treesitter';

View File

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

View File

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

View File

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