diff options
author | Abouzar Parvan <[email protected]> | 2021-07-19 11:47:49 +0430 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-19 03:17:49 -0400 |
commit | e50a586a3a08b29ef9dac3094ee563d989a68190 (patch) | |
tree | b0aecd412d9b3e85299c41b687f8a8b396d888d3 /lua | |
parent | 047f641b05ff3e4fb8cdc614610158efd30c18fd (diff) |
toggle() already follows the file, no need for find_file() (#1020)
Diffstat (limited to 'lua')
-rw-r--r-- | lua/core/nvimtree.lua | 2 | ||||
-rw-r--r-- | lua/plugins.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lua/core/nvimtree.lua b/lua/core/nvimtree.lua index 7ecbe8c2..a763c71d 100644 --- a/lua/core/nvimtree.lua +++ b/lua/core/nvimtree.lua @@ -81,7 +81,7 @@ M.toggle_tree = function() -- require'bufferline.state'.set_offset(31, 'File Explorer') require("bufferline.state").set_offset(31, "") end - require("nvim-tree").find_file(true) + require("nvim-tree").toggle() end end -- diff --git a/lua/plugins.lua b/lua/plugins.lua index f880cc1f..85cde9f1 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -74,7 +74,7 @@ return { "kyazdani42/nvim-tree.lua", -- event = "BufWinOpen", -- cmd = "NvimTreeToggle", - commit = "fd7f60e242205ea9efc9649101c81a07d5f458bb", + -- commit = "fd7f60e242205ea9efc9649101c81a07d5f458bb", config = function() require("core.nvimtree").setup() end, |