From b66e4efa7caae614335c694275133ef42384a98a Mon Sep 17 00:00:00 2001 From: Nicholas Moore Date: Tue, 13 May 2025 16:59:19 -0500 Subject: Refactor neovim config into multiple files --- nvim/lua/custom/plugins/toggleterm.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nvim/lua/custom/plugins/toggleterm.lua (limited to 'nvim/lua/custom/plugins/toggleterm.lua') diff --git a/nvim/lua/custom/plugins/toggleterm.lua b/nvim/lua/custom/plugins/toggleterm.lua new file mode 100644 index 0000000..cc40f75 --- /dev/null +++ b/nvim/lua/custom/plugins/toggleterm.lua @@ -0,0 +1,21 @@ +return { + { + 'akinsho/toggleterm.nvim', + version = '*', + opts = { + start_in_insert = false, + persistent_mode = true, + shell = vim.o.shell, + auto_scroll = true, + + -- Float options + float_opts = { + border = 'single', + title_pos = 'center', + }, + + -- Bindings + vim.keymap.set('n', '`', ':ToggleTerm direction=float', { desc = 'Open a floating terminal' }), + }, + }, +} -- cgit v1.3