~enan/dotfiles

ddf37c757f06c9d15208ca8982b1e2f78a66517e — Enan Ajmain 1 year, 10 months ago 0cf8769
vim: disable semantic highlighting from LSP
1 files changed, 3 insertions(+), 0 deletions(-)

M .config/nvim/lua/user/lspconfig.lua
M .config/nvim/lua/user/lspconfig.lua => .config/nvim/lua/user/lspconfig.lua +3 -0
@@ 47,6 47,9 @@ local on_attach = function(client, bufnr)
  vim.keymap.set('n', '<leader>lk', vim.lsp.buf.signature_help, bufopts)
  vim.keymap.set('n', '<leader>lt', vim.lsp.buf.type_definition, bufopts)
  vim.keymap.set('n', '<leader>lc', vim.lsp.buf.code_action, bufopts)

  -- Disable semantic highlighting
  client.server_capabilities.semanticTokensProvider = nil
end

local lsp_flags = {