configura angular language server e format style para java

This commit is contained in:
Lucas Garcia Rubio 2025-03-06 18:48:45 -03:00
parent 27382201d1
commit 79c770bbfb
2 changed files with 7 additions and 4 deletions

View File

@ -99,8 +99,7 @@ local config = {
enabled = true, enabled = true,
-- Formatting works by default, but you can refer to a specific file/URL if you choose -- Formatting works by default, but you can refer to a specific file/URL if you choose
settings = { settings = {
path = '/home/lucas/magna-sistemas-java-code-formatter.xml', url = '/home/lucas/magna-sistemas-java-code-formatter.xml',
profile = 'MagnaSistemasStyle',
}, },
}, },
completion = { completion = {

View File

@ -156,10 +156,11 @@ vim.opt.cursorline = true
-- Minimal number of screen lines to keep above and below the cursor. -- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 15 vim.opt.scrolloff = 15
-- Uncoment if you want a margin in filetypes
vim.api.nvim_create_autocmd('FileType', { vim.api.nvim_create_autocmd('FileType', {
pattern = 'java', pattern = 'java',
callback = function() callback = function()
vim.opt_local.colorcolumn = '120' vim.opt_local.colorcolumn = '200'
end, end,
}) })
@ -680,7 +681,6 @@ require('lazy').setup({
'java-test', 'java-test',
'prettier', 'prettier',
'eslint_d', 'eslint_d',
'angular-language-server',
}) })
require('mason-tool-installer').setup { ensure_installed = ensure_installed } require('mason-tool-installer').setup { ensure_installed = ensure_installed }
@ -706,6 +706,10 @@ require('lazy').setup({
require('lspconfig')[server_name].setup(server) require('lspconfig')[server_name].setup(server)
end end
end, end,
-- TODO: configurar versão do angular e capabilities
angularls = function()
require('lspconfig').angularls.setup {}
end,
}, },
} }
end, end,