summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/functions.lua7
-rw-r--r--lua/style.lua3
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 },
}
})