From a5e8bbeb9d79d905a193e95a39acd29bc37e6c66 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Wed, 16 Sep 2026 08:47:13 +0200 Subject: Updated dotfiles --- neovim/.config/nvim/lua/plugins/toggleterm.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 neovim/.config/nvim/lua/plugins/toggleterm.lua (limited to 'neovim/.config/nvim/lua/plugins/toggleterm.lua') diff --git a/neovim/.config/nvim/lua/plugins/toggleterm.lua b/neovim/.config/nvim/lua/plugins/toggleterm.lua new file mode 100644 index 0000000..b8067a3 --- /dev/null +++ b/neovim/.config/nvim/lua/plugins/toggleterm.lua @@ -0,0 +1,18 @@ +-- Scratch terminal for running arbitrary shell commands, toggled like +-- claude-code.nvim's own - open/close (not kill) a persistent split. +return { + "akinsho/toggleterm.nvim", + lazy = false, -- global toggle must work from any window, not just after some trigger event + opts = { + open_mapping = [[]], -- registers n, t (terminal_mappings) and i (insert_mappings) mode maps automatically + direction = "vertical", + -- toggleterm's vertical direction always opens via "botright vsplit" internally, + -- so this already matches claude-code.nvim's right-side placement without + -- touching 'splitright'. + size = function(term) + if term.direction == "vertical" then + return math.floor(vim.o.columns * 0.3) -- matches claude-code.nvim's window.position ratio + end + end, + }, +} -- cgit v1.3