[nvim] Re-enable lsp for js (eslint)
This commit is contained in:
parent
2e7915f27e
commit
527138faf0
1 changed files with 13 additions and 12 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue