@@ -530,6 +530,14 @@ require('lazy').setup({
530530 group = highlight_augroup ,
531531 callback = vim .lsp .buf .clear_references ,
532532 })
533+
534+ vim .api .nvim_create_autocmd (' LspDetach' , {
535+ group = vim .api .nvim_create_augroup (' kickstart-lsp-detach' , { clear = true }),
536+ callback = function (event2 )
537+ vim .lsp .buf .clear_references ()
538+ vim .api .nvim_clear_autocmds { group = ' kickstart-lsp-highlight' , buffer = event2 .buf }
539+ end ,
540+ })
533541 end
534542
535543 -- The following autocommand is used to enable inlay hints in your
@@ -544,14 +552,6 @@ require('lazy').setup({
544552 end ,
545553 })
546554
547- vim .api .nvim_create_autocmd (' LspDetach' , {
548- group = vim .api .nvim_create_augroup (' kickstart-lsp-detach' , { clear = true }),
549- callback = function (event )
550- vim .lsp .buf .clear_references ()
551- vim .api .nvim_clear_autocmds { group = ' kickstart-lsp-highlight' , buffer = event .buf }
552- end ,
553- })
554-
555555 -- LSP servers and clients are able to communicate to each other what features they support.
556556 -- By default, Neovim doesn't support everything that is in the LSP specification.
557557 -- When you add nvim-cmp, luasnip, etc. Neovim now has *more* capabilities.
@@ -851,7 +851,7 @@ require('lazy').setup({
851851 ' nvim-treesitter/nvim-treesitter' ,
852852 build = ' :TSUpdate' ,
853853 opts = {
854- ensure_installed = { ' bash' , ' c' , ' html' , ' lua' , ' luadoc' , ' markdown' , ' vim' , ' vimdoc' },
854+ ensure_installed = { ' bash' , ' c' , ' diff ' , ' html' , ' lua' , ' luadoc' , ' markdown' , ' vim' , ' vimdoc' },
855855 -- Autoinstall languages that are not installed
856856 auto_install = true ,
857857 highlight = {
0 commit comments