Update nvim

This commit is contained in:
Smirnov Alexander 2021-06-24 16:12:44 +03:00
parent fef35c3ef0
commit f20307981c
5 changed files with 36 additions and 12 deletions

View file

@ -13,8 +13,9 @@ require'compe'.setup {
source = {
-- path = true,
buffer = true,
nvim_lsp = true,
};
description = true,
nvim_lsp = true
}
}
-- LuaLine

View file

@ -1,8 +1,8 @@
local S = vim.g
-- Settings
S.nvim_tree_side = "left"
S.nvim_tree_ignore = {".git", ".cache", "node_modules", "venv", "env"}
S.nvim_tree_side = "right"
S.nvim_tree_ignore = {".git", ".cache", "node_modules", "__pycache__", "venv", "env"}
S.nvim_tree_auto_close = 0
S.nvim_tree_quit_on_open = 0
S.nvim_tree_width = 24

View file

@ -0,0 +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,
},
})