diff options
Diffstat (limited to 'lua/functions.lua')
-rw-r--r-- | lua/functions.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/functions.lua b/lua/functions.lua index 0030b6c..8e89c2f 100644 --- a/lua/functions.lua +++ b/lua/functions.lua @@ -54,6 +54,13 @@ function _G.toggle_terminal() vim.api.nvim_win_set_height(vim.fn.win_getid(), vim.g.terminal_height) + vim.api.nvim_win_set_option( + vim.fn.win_getid(), + "winhighlight", + "Normal:TerminalWindow" + ) + + vim.fn.termopen(vim.env.SHELL, {detach=0}) vim.g.term_buf = vim.fn.bufnr("") |