update lvim

This commit is contained in:
neoteny 2021-10-08 09:42:28 +03:00
parent da1068fdc2
commit 846f37457c
10 changed files with 54 additions and 57 deletions

View file

@ -1,10 +1,10 @@
lvim.lang.javascript.formatters = {
-- { exe = "eslint_d" },
{ exe = "prettierd" },
-- { exe = "eslint_d" },
{ exe = "prettierd" },
}
lvim.lang.javascript.linters = {
{ exe = "eslint_d" },
{ exe = "eslint_d" },
}
-- Debugger
@ -12,17 +12,17 @@ require("dap-install").config("jsnode", {})
-- Lsp
lvim.lang.javascript.lsp.setup.handlers = {
["textDocument/publishDiagnostics"] = function(_, _, p, id, _, cfg)
if p.diagnostics ~= nil then
local i = 1
while i <= #p.diagnostics do
if p.diagnostics[i].code == 80001 then
table.remove(p.diagnostics, i)
else
i = i + 1
end
end
end
vim.lsp.diagnostic.on_publish_diagnostics(_, _, p, id, _, cfg)
end,
["textDocument/publishDiagnostics"] = function(_, _, p, id, _, cfg)
if p.diagnostics ~= nil then
local i = 1
while i <= #p.diagnostics do
if p.diagnostics[i].code == 80001 then
table.remove(p.diagnostics, i)
else
i = i + 1
end
end
end
vim.lsp.diagnostic.on_publish_diagnostics(_, _, p, id, _, cfg)
end,
}