added eslint
This commit is contained in:
parent
46d54a53af
commit
5f16d590ae
3 changed files with 9 additions and 1 deletions
|
@ -4,12 +4,16 @@ if not null_ls_status_ok then
|
||||||
end
|
end
|
||||||
|
|
||||||
local formatting = null_ls.builtins.formatting
|
local formatting = null_ls.builtins.formatting
|
||||||
-- local diagnostics = null_ls.builtins.diagnostics
|
local code_actions = null_ls.builtins.code_actions
|
||||||
|
local diagnostics = null_ls.builtins.diagnostics
|
||||||
|
|
||||||
null_ls.setup({
|
null_ls.setup({
|
||||||
debug = false,
|
debug = false,
|
||||||
sources = {
|
sources = {
|
||||||
formatting.stylua,
|
formatting.stylua,
|
||||||
|
code_actions.eslint_d,
|
||||||
|
diagnostics.eslint_d,
|
||||||
|
formatting.eslint_d,
|
||||||
},
|
},
|
||||||
on_attach = function(client)
|
on_attach = function(client)
|
||||||
if client.server_capabilities.documentFormattingProvider then
|
if client.server_capabilities.documentFormattingProvider then
|
||||||
|
|
1
.config/nvim/lua/user/lsp/settings/jsonls.json
Normal file
1
.config/nvim/lua/user/lsp/settings/jsonls.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{}
|
3
.config/nvim/lua/user/lsp/settings/volar.json
Normal file
3
.config/nvim/lua/user/lsp/settings/volar.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
Reference in a new issue