diff options
Diffstat (limited to 'lua/functions.lua')
-rw-r--r-- | lua/functions.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/functions.lua b/lua/functions.lua index 7d95ac3..0030b6c 100644 --- a/lua/functions.lua +++ b/lua/functions.lua @@ -81,6 +81,16 @@ function _G.toggle_terminal() end end +function _G.toggle_nerdtree() + vim.cmd("NERDTreeToggle") + + vim.api.nvim_win_set_option( + vim.fn.win_getid(), + "winhighlight", + "Normal:NERDTreeWindow" + ) +end + function _G.get_current_file() return vim.fn.expand("%") end |