From a20b53d8061bc86d63a40132442e38e2c203a994 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 1 Jun 2024 13:26:35 +0200 Subject: make terminal window have panel background color --- lua/functions.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lua/functions.lua') 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("") -- cgit v1.2.3-18-g5258