summaryrefslogtreecommitdiff
path: root/lua/functions.lua
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-06-01 13:26:35 +0200
committerHampusM <hampus@hampusmat.com>2024-06-01 13:26:35 +0200
commita20b53d8061bc86d63a40132442e38e2c203a994 (patch)
treef990f02dadad6f6e58a7d42669ec052717f1972a /lua/functions.lua
parent37faf82c6a34ef74c45bf64277b2557a52fdfc62 (diff)
make terminal window have panel background color
Diffstat (limited to 'lua/functions.lua')
-rw-r--r--lua/functions.lua7
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("")