[nvim] Re-enable lsp for js (eslint)

This commit is contained in:
realestninja 2025-05-13 15:57:29 +02:00
parent 2e7915f27e
commit 527138faf0

View file

@ -76,15 +76,16 @@ nvim_lsp.denols.setup {
}
}
}
-- nvim_lsp.eslint.setup {
-- on_attach = function(client, bufnr)
-- print('ESLint started!')
-- end,
-- filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' },
-- init_options = {
-- settings = {
-- lintOnSave = true,
-- formatOnSave = true
-- }
-- }
-- }
nvim_lsp.eslint.setup {
on_attach = function(client, bufnr)
print('ESLint started!')
end,
filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' },
init_options = {
settings = {
lintOnSave = true,
formatOnSave = true
}
}
}