diff options
author | HampusM <hampus@hampusmat.com> | 2024-06-01 13:26:35 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-06-01 13:26:35 +0200 |
commit | a20b53d8061bc86d63a40132442e38e2c203a994 (patch) | |
tree | f990f02dadad6f6e58a7d42669ec052717f1972a | |
parent | 37faf82c6a34ef74c45bf64277b2557a52fdfc62 (diff) |
make terminal window have panel background color
-rw-r--r-- | lua/functions.lua | 7 | ||||
-rw-r--r-- | lua/style.lua | 3 |
2 files changed, 9 insertions, 1 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("") 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 }, } }) |