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 +++++++ lua/style.lua | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to '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("") diff --git a/lua/style.lua b/lua/style.lua index 2f7f5d6..8942157 100644 --- a/lua/style.lua +++ b/lua/style.lua @@ -8,7 +8,8 @@ require('ayu').setup({ LineNrAbove = { fg = ayu_colors.comment }, LineNrBelow = { fg = ayu_colors.comment }, LineNr = { fg = ayu_colors.accent }, - NERDTreeWindow = { fg = ayu_colors.fg, bg = ayu_colors.panel_bg } + NERDTreeWindow = { fg = ayu_colors.fg, bg = ayu_colors.panel_bg }, + TerminalWindow = { fg = ayu_colors.fg, bg = ayu_colors.panel_bg }, } }) -- cgit v1.2.3-18-g5258