Update nvim config, zsh

This commit is contained in:
Smirnov-O 2021-07-01 10:43:59 +03:00
parent f20307981c
commit c1cc0c9ebe
9 changed files with 65 additions and 72 deletions

View file

@ -1,17 +1,17 @@
require('lspconfig').typescript.setup({
handlers = {
["textDocument/publishDiagnostics"] = function(_, _, params, client_id, _, config)
if params.diagnostics ~= nil then
local idx = 1
while idx <= #params.diagnostics do
if params.diagnostics[idx].code == 80001 then
table.remove(params.diagnostics, idx)
else
idx = idx + 1
end
end
end
vim.lsp.diagnostic.on_publish_diagnostics(_, _, params, client_id, _, config)
end,
},
handlers = {
["textDocument/publishDiagnostics"] = function(_, _, params, client_id, _, config)
if params.diagnostics ~= nil then
local idx = 1
while idx <= #params.diagnostics do
if params.diagnostics[idx].code == 80001 then
table.remove(params.diagnostics, idx)
else
idx = idx + 1
end
end
end
vim.lsp.diagnostics.on_publish_diagnostics(_, _, params, client_id, _, config)
end,
},
})