fixed nvim-tree
This commit is contained in:
parent
ec9fddd55f
commit
3bc226d1f2
|
|
@ -285,5 +285,6 @@ return require("packer").startup(
|
|||
"ggandor/lightspeed.nvim",
|
||||
requires = {"tpope/vim-repeat"}
|
||||
}
|
||||
use "jghauser/mkdir.nvim"
|
||||
end
|
||||
)
|
||||
|
|
|
|||
|
|
@ -25,11 +25,15 @@ vim.g.nvim_tree_icons = {
|
|||
}
|
||||
}
|
||||
|
||||
vim.cmd [[
|
||||
autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif
|
||||
autocmd BufRead,BufNewFile NvimTree_1 lua vim.diagnostic.disable()
|
||||
]]
|
||||
|
||||
local tree_cb = require "nvim-tree.config".nvim_tree_callback
|
||||
-- default mappings
|
||||
require "nvim-tree".setup(
|
||||
{
|
||||
auto_close = true,
|
||||
git = {
|
||||
enable = true,
|
||||
ignore = false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue