neovim: lspsaga highlight groups

This commit is contained in:
FollieHiyuki 2021-08-31 22:58:15 +07:00
parent 7deb0d68f1
commit 418f3b462b
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
3 changed files with 33 additions and 10 deletions

View File

@ -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', '')

View File

@ -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 <buffer> set showtabline=2"},

View File

@ -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'
}