summaryrefslogtreecommitdiff
path: root/lua/maps
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-05-30 19:15:41 +0200
committerHampusM <hampus@hampusmat.com>2024-05-30 19:58:44 +0200
commita6123a6dd5ee3f7e63077cf72a40a1085cebada1 (patch)
treebfe00bca1b126c951a70fed2e37ceafa718ca185 /lua/maps
parent397231322ba179218eb89b2b9c6470387f99e221 (diff)
make terminal resizing more robust
Diffstat (limited to 'lua/maps')
-rw-r--r--lua/maps/terminal.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/maps/terminal.lua b/lua/maps/terminal.lua
index c3dc804..a1cde60 100644
--- a/lua/maps/terminal.lua
+++ b/lua/maps/terminal.lua
@@ -1,14 +1,14 @@
vim.api.nvim_set_keymap(
"n",
"<leader>t",
- ":lua toggle_terminal(vim.g.terminal_height)<CR>",
+ ":lua toggle_terminal()<CR>",
{silent = true, noremap = true}
)
vim.api.nvim_set_keymap(
"t",
"<leader>t",
- "<C-\\><C-n>:lua toggle_terminal(vim.g.terminal_height)<CR>",
+ "<C-\\><C-n>:lua toggle_terminal()<CR>",
{silent = true, noremap = true}
)