Archived
0
0
Fork 0

added eslint

This commit is contained in:
Daryl Ronningen 2022-06-23 22:33:09 +08:00
parent 46d54a53af
commit 5f16d590ae
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
3 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,3 @@
{
}