Disable highlighting of semantic tokens #3228
Answered
by
agingorange
agingorange
asked this question in
Q&A
-
Not sure if I used the correct term, but with the cursor on a word, how do I disable the highlighting of similar things? I tried putting the following in the lua/config/autocmds.lua, but it didn't disable it: vim.api.nvim_create_autocmd('LspAttach', {
group = vim.api.nvim_create_augroup('UserLspConfig', {}),
callback = function(ev)
local client = vim.lsp.get_client_by_id(ev.data.client_id)
client.server_capabilities.semanticTokensProvider = nil
end,
}) |
Beta Was this translation helpful? Give feedback.
Answered by
agingorange
May 20, 2024
Replies: 2 comments
-
Figured it out. {
'neovim/nvim-lspconfig',
opts = {
document_highlight = { enabled = false },
},
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
agingorange
-
Thank you so much. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out.