chore: remove autocmd to disable lsp syntax tokens

This commit is contained in:
Simon Lasbrugnas 2026-03-13 15:43:14 +01:00
parent 1b3094c4c7
commit 31185c4f1b
Signed by untrusted user who does not match committer: simon
GPG key ID: 86039876BA6ED8DE

View file

@ -24,16 +24,6 @@ vim.api.nvim_create_autocmd("FileType", {
end,
})
-- Disable LSP Semantic Tokens
vim.api.nvim_create_autocmd("LspAttach", {
callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id)
if client and client.server_capabilities.semanticTokensProvider then
client.server_capabilities.semanticTokensProvider = nil
end
end,
})
-- Auto insert mode on TermOpen
vim.api.nvim_create_autocmd({ "TermOpen", "BufEnter" }, {
pattern = { "*" },