Skip to content

Commit

Permalink
integrate main nvim-lua#900 to lspconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
kgstaley committed May 24, 2024
1 parent c21761f commit b5690f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/kickstart/plugins/nvim-lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ return { -- LSP Configuration & Plugins
group = highlight_augroup,
callback = vim.lsp.buf.clear_references,
})

vim.api.nvim_create_autocmd('LspDetach', {
group = vim.api.nvim_create_augroup('kickstart-lsp-detach', { clear = true }),
callback = function(event2)
vim.lsp.buf.clear_references()
vim.api.nvim_clear_autocmds { group = 'kickstart-lsp-highlight', buffer = event2.buf }
end,
})
end

-- The following autocommand is used to enable inlay hints in your
Expand Down

0 comments on commit b5690f5

Please sign in to comment.