From 418f3b462b90d244156aeecd1a4c38412b96371f Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Tue, 31 Aug 2021 22:58:15 +0700 Subject: [PATCH] neovim: lspsaga highlight groups --- home/.config/nvim/lua/colors/nord.lua | 23 +++++++++++++++++++++++ home/.config/nvim/lua/events.lua | 16 ++++++++-------- home/.config/nvim/lua/plugins.lua | 4 ++-- 3 files changed, 33 insertions(+), 10 deletions(-) diff --git a/home/.config/nvim/lua/colors/nord.lua b/home/.config/nvim/lua/colors/nord.lua index a4e198c..24414e0 100644 --- a/home/.config/nvim/lua/colors/nord.lua +++ b/home/.config/nvim/lua/colors/nord.lua @@ -325,6 +325,29 @@ local function highlight_plugins() -- trouble.nvim hi('LspTroubleText', c.blue, '', 'bold', '') + -- lspsaga.nvim + hi('DiagnosticError', c.grey1, '', '', '') + hi('DiagnosticWarning', c.purple, '', '', '') + hi('DiagnosticInformation', c.dark_blue, '', '', '') + hi('DiagnosticHint', c.blue, '', '', '') + hi('DiagnosticTruncateLine', c.fg, '', '', '') + hi('LspFloatWinNormal', c.grey2, '', '', '') + hi('LspFloatWinBorder', c.blue, '', '', '') + hi('LspSagaBorderTitle', c.cyan, '', '', '') + hi('LspSagaHoverBorder', c.dark_blue, '', '', '') + hi('LspSagaRenameBorder', c.green, '', '', '') + hi('LspSagaDefPreviewBorder', c.green, '', '', '') + hi('LspSagaCodeActionBorder', c.teal, '', '', '') + hi('LspSagaFinderSelection', c.green, '', '', '') + hi('LspSagaCodeActionTitle', c.dark_blue, '', '', '') + hi('LspSagaCodeActionContent', c.blue, '', '', '') + hi('LspSagaSignatureHelpBorder', c.yellow, '', '', '') + hi('ReferencesCount', c.blue, '', '', '') + hi('DefinitionCount', c.blue, '', '', '') + hi('DefinitionIcon', c.teal, '', '', '') + hi('ReferencesIcon', c.teal, '', '', '') + hi('TargetWord', c.cyan, '', '', '') + -- Telescope hi('TelescopePromptBorder', c.cyan, '', 'bold', '') hi('TelescopeResultsBorder', c.blue, '', 'bold', '') diff --git a/home/.config/nvim/lua/events.lua b/home/.config/nvim/lua/events.lua index 6ae6931..1a475a7 100644 --- a/home/.config/nvim/lua/events.lua +++ b/home/.config/nvim/lua/events.lua @@ -53,14 +53,14 @@ function M.load_autocmds() {"BufEnter,BufWinEnter,WinEnter,CmdwinEnter", "*", [[if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif]]} }, - -- wins = { - -- -- Equalize window dimensions when resizing vim window - -- {"VimResized", "*", [[tabdo wincmd =]]}, - -- -- Force writing shada on leaving nvim - -- {"VimLeave", "*", [[if has('nvim') | wshada! | else | wviminfo! | endif]]}, - -- -- Check if file changed when its window is focus, more eager than 'autoread' - -- {"FocusGained", "* checktime"} - -- }, + wins = { + -- Equalize window dimensions when resizing vim window + {"VimResized", "*", [[tabdo wincmd =]]}, + -- Force writing shada on leaving nvim + {"VimLeave", "*", [[if has('nvim') | wshada! | else | wviminfo! | endif]]}, + -- Check if file changed when its window is focus, more eager than 'autoread' + {"FocusGained", "* checktime"} + }, ft = { {"FileType", "dashboard", "set showtabline=0 | autocmd WinLeave set showtabline=2"}, diff --git a/home/.config/nvim/lua/plugins.lua b/home/.config/nvim/lua/plugins.lua index e35fb9c..9e24313 100644 --- a/home/.config/nvim/lua/plugins.lua +++ b/home/.config/nvim/lua/plugins.lua @@ -119,7 +119,7 @@ return require('packer').startup( 'romgrk/nvim-treesitter-context', after = 'nvim-treesitter' } - use { -- TODO: define whichkey + use { 'nvim-treesitter/nvim-treesitter-textobjects', after = 'nvim-treesitter', config = function() @@ -151,7 +151,7 @@ return require('packer').startup( 'ray-x/lsp_signature.nvim', after = 'nvim-lspconfig' } - use { -- TODO: colors + config + use { 'glepnir/lspsaga.nvim', after = 'nvim-lspconfig' }