diff options
author | HampusM <hampus@hampusmat.com> | 2024-06-01 01:33:01 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-06-01 01:35:20 +0200 |
commit | 3201478b5ed74340820c66a05eb34ae39d0c9fa0 (patch) | |
tree | b7d386160dbb148754d1fff66cb76b6412ab95c4 /lua/functions.lua | |
parent | 2af06d6e050b1653bd4e085e27262738ec7da136 (diff) |
make NERDTree have own background color
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 |