mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Update nvim config, zsh
This commit is contained in:
parent
f20307981c
commit
c1cc0c9ebe
9 changed files with 65 additions and 72 deletions
|
|
@ -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,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue