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 -- trouble.nvim
hi('LspTroubleText', c.blue, '', 'bold', '') 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 -- Telescope
hi('TelescopePromptBorder', c.cyan, '', 'bold', '') hi('TelescopePromptBorder', c.cyan, '', 'bold', '')
hi('TelescopeResultsBorder', c.blue, '', '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]]} {"BufEnter,BufWinEnter,WinEnter,CmdwinEnter", "*", [[if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif]]}
}, },
-- wins = { wins = {
-- -- Equalize window dimensions when resizing vim window -- Equalize window dimensions when resizing vim window
-- {"VimResized", "*", [[tabdo wincmd =]]}, {"VimResized", "*", [[tabdo wincmd =]]},
-- -- Force writing shada on leaving nvim -- Force writing shada on leaving nvim
-- {"VimLeave", "*", [[if has('nvim') | wshada! | else | wviminfo! | endif]]}, {"VimLeave", "*", [[if has('nvim') | wshada! | else | wviminfo! | endif]]},
-- -- Check if file changed when its window is focus, more eager than 'autoread' -- Check if file changed when its window is focus, more eager than 'autoread'
-- {"FocusGained", "* checktime"} {"FocusGained", "* checktime"}
-- }, },
ft = { ft = {
{"FileType", "dashboard", "set showtabline=0 | autocmd WinLeave <buffer> set showtabline=2"}, {"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', 'romgrk/nvim-treesitter-context',
after = 'nvim-treesitter' after = 'nvim-treesitter'
} }
use { -- TODO: define whichkey use {
'nvim-treesitter/nvim-treesitter-textobjects', 'nvim-treesitter/nvim-treesitter-textobjects',
after = 'nvim-treesitter', after = 'nvim-treesitter',
config = function() config = function()
@ -151,7 +151,7 @@ return require('packer').startup(
'ray-x/lsp_signature.nvim', 'ray-x/lsp_signature.nvim',
after = 'nvim-lspconfig' after = 'nvim-lspconfig'
} }
use { -- TODO: colors + config use {
'glepnir/lspsaga.nvim', 'glepnir/lspsaga.nvim',
after = 'nvim-lspconfig' after = 'nvim-lspconfig'
} }