diff --git a/init.lua b/init.lua index 1c70ab2..2e23146 100644 --- a/init.lua +++ b/init.lua @@ -12,7 +12,6 @@ else "clone", "--filter=blob:none", "http://git.qqnewbie.top/newbieQQ/lazy.nvim.git", - -- latest stable release "--branch=stable", lazypath, }) @@ -30,7 +29,7 @@ else require("lazy").setup({ require('normal.plug'), - require('neovim.plug') + require('neovim.plug'), }) require('normal.normal') diff --git a/lua/neovim/plugsettings/nvimtree.lua b/lua/neovim/plugsettings/nvimtree.lua index 30a9f1d..da4c764 100644 --- a/lua/neovim/plugsettings/nvimtree.lua +++ b/lua/neovim/plugsettings/nvimtree.lua @@ -1,32 +1,22 @@ return { - 'kyazdani42/nvim-web-devicons', - { - 'kyazdani42/nvim-tree.lua', - config = function () - require'nvim-tree'.setup { - sort_by = "case_sensitive", - view = { - width = 30, - }, - -- renderer = { - -- group_empty = true, - -- }, - filters = { - dotfiles = true, - }, - -- -- 关闭文件时自动关闭 - -- auto_close = true, - -- -- 不显示 git 状态图标 - -- git = { - -- enable = true - -- } - } + 'kyazdani42/nvim-web-devicons', + { + 'kyazdani42/nvim-tree.lua', + config = function () G.map({ - {"n", "", ":NvimTreeToggle",{noremap = true}}, + {"n", "", ":NvimTreeToggle", {noremap = true}}, }) - end + require'nvim-tree'.setup { + sort_by = "case_sensitive", + view = { width = 30, }, + filters = { dotfiles = true, }, + git = { enable = true }, +-- on_attach = my_on_attach, + } - } + end + + } }