[neovim] Disable LSP syntax highlighting
This commit is contained in:
@@ -15,7 +15,7 @@ opt.statusline = "[%n] %<%f %h%w%m%r%=%-14.(%l,%c%V%) %P"
|
||||
-- Block cursor
|
||||
opt.guicursor = ""
|
||||
|
||||
-- Hightlight cursor line
|
||||
-- Highlight cursor line
|
||||
opt.cursorline = true
|
||||
|
||||
-- Set termguicolors
|
||||
@@ -127,11 +127,20 @@ end)
|
||||
|
||||
-- [[ AUTOCMDS ]] --
|
||||
|
||||
-- Hightlight copied text
|
||||
-- Highlight copied text
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
callback = function() vim.highlight.on_yank() end
|
||||
})
|
||||
|
||||
-- Disable LSP syntax highlight
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
group = vim.api.nvim_create_augroup('my.lsp', {}),
|
||||
callback = function(ev)
|
||||
local client = assert(vim.lsp.get_client_by_id(ev.data.client_id))
|
||||
client.server_capabilities.semanticTokensProvider = nil
|
||||
end
|
||||
})
|
||||
|
||||
-- [[ PLUGINS ]] --
|
||||
|
||||
-- Install plugins
|
||||
|
||||
Reference in New Issue
Block a user