diff options
| author | jdhao <jdhao@hotmail.com> | 2022-02-05 13:40:54 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-02-05 13:40:54 +0800 |
| commit | 2b24d0794e95ce45e9bbd346c99a3bd76f127102 (patch) | |
| tree | 90797f393bc6b3d3b8bb41d762bd58e9cd4e3b71 /lua | |
| parent | f10f6883748903546690476404a291318efaa283 (diff) | |
Use nvim-tree as file explorer when we open a folder
netrw plugin needs to be disabled, and nvim-tree needs to be start
package. Otherwise, the hijacking won't work, and when we open a folder,
it just open a new file with the same name.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/nvim-tree.lua | 2 | ||||
| -rw-r--r-- | lua/plugins.lua | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lua/config/nvim-tree.lua b/lua/config/nvim-tree.lua index a048c7a..d694dc0 100644 --- a/lua/config/nvim-tree.lua +++ b/lua/config/nvim-tree.lua @@ -45,7 +45,7 @@ nvim_tree.setup({ height = 30, hide_root_folder = false, side = "left", - auto_resize = false, + auto_resize = true, mappings = { custom_only = false, list = {}, diff --git a/lua/plugins.lua b/lua/plugins.lua index ea439a6..9b41deb 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -359,7 +359,6 @@ require("packer").startup({ use { 'kyazdani42/nvim-tree.lua', requires = { 'kyazdani42/nvim-web-devicons' }, - keys = {{'n', '<space>s'}, }, config = [[require('config.nvim-tree')]] } end, |
