fixed nvim-tree
This commit is contained in:
parent
ec9fddd55f
commit
3bc226d1f2
|
|
@ -285,5 +285,6 @@ return require("packer").startup(
|
||||||
"ggandor/lightspeed.nvim",
|
"ggandor/lightspeed.nvim",
|
||||||
requires = {"tpope/vim-repeat"}
|
requires = {"tpope/vim-repeat"}
|
||||||
}
|
}
|
||||||
|
use "jghauser/mkdir.nvim"
|
||||||
end
|
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
|
local tree_cb = require "nvim-tree.config".nvim_tree_callback
|
||||||
-- default mappings
|
-- default mappings
|
||||||
require "nvim-tree".setup(
|
require "nvim-tree".setup(
|
||||||
{
|
{
|
||||||
auto_close = true,
|
|
||||||
git = {
|
git = {
|
||||||
enable = true,
|
enable = true,
|
||||||
ignore = false,
|
ignore = false,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue