fix(nvim): make sure we start the lsp for every buffer

This commit is contained in:
matt1432 2025-05-17 07:55:59 -04:00
parent 7f2d610add
commit ad30b3eda7
12 changed files with 15 additions and 15 deletions
homeManagerModules/neovim/langs/java

View file

@ -22,7 +22,7 @@ in {
extraLuaConfig =
# lua
''
vim.api.nvim_create_autocmd('FileType', {
vim.api.nvim_create_autocmd({ 'FileType', 'BufEnter' }, {
pattern = 'java',
command = 'setlocal ts=4 sw=4 sts=0 expandtab',
});
@ -63,7 +63,7 @@ in {
require('jdtls').start_or_attach(config);
end
vim.api.nvim_create_autocmd('FileType', {
vim.api.nvim_create_autocmd({ 'FileType', 'BufEnter' }, {
pattern = 'java',
callback = startJdtls,
});