nvim: fix for nvimtree diagnostics error

This commit is contained in:
PowerUser64 2021-10-13 11:04:58 -07:00
parent ea6851f98c
commit 846a3b6934

View file

@ -4,7 +4,6 @@ local M = {}
M.nvimtree = function ()
local tree_cb = require'nvim-tree.config'.nvim_tree_callback
-- mappings
-- [[
local list = {
{ key = {"<CR>", "<2-LeftMouse>", "zo", "l"}, cb = tree_cb("edit") },
{ key = "J", cb = tree_cb("cd") },
@ -39,40 +38,8 @@ M.nvimtree = function ()
{ key = "q", cb = tree_cb("close") },
{ key = "g?", cb = tree_cb("toggle_help") },
}
-- ]]
require'nvim-tree'.setup {
disable_netrw = true,
hijack_netrw = true,
open_on_setup = false,
ignore_ft_on_setup = {},
update_to_buf_dir = {
enable = true,
auto_open = true,
},
auto_close = false,
open_on_tab = false,
hijack_cursor = false,
update_cwd = false,
lsp_diagnostics = false,
update_focused_file = {
enable = false,
update_cwd = false,
ignore_list = {}
},
system_open = {
cmd = nil,
args = {}
},
view = {
width = 30,
height = 30,
side = 'left',
auto_resize = false,
mappings = {
custom_only = false,
list = {}
}
}
hijack_cursor = true,
}
end -- <<<