mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Update nvim
This commit is contained in:
parent
fef35c3ef0
commit
f20307981c
5 changed files with 36 additions and 12 deletions
|
|
@ -13,8 +13,9 @@ require'compe'.setup {
|
|||
source = {
|
||||
-- path = true,
|
||||
buffer = true,
|
||||
nvim_lsp = true,
|
||||
};
|
||||
description = true,
|
||||
nvim_lsp = true
|
||||
}
|
||||
}
|
||||
|
||||
-- LuaLine
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
17
config/nvim/lua/tsserver.lua
Normal file
17
config/nvim/lua/tsserver.lua
Normal 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,
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue