aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/custom/plugins/toggleterm.lua
diff options
context:
space:
mode:
authorNicholas Moore <nicholasvmoore@gmail.com>2025-05-13 16:59:19 -0500
committerNick Moore <nicholasvmoore@gmail.com>2025-10-29 07:38:18 -0500
commitb66e4efa7caae614335c694275133ef42384a98a (patch)
treefa97fd08e4a0fdecd94865b71e0b6bdd5fb6284b /nvim/lua/custom/plugins/toggleterm.lua
parent45f088bb6c322ec6b9cfe2b07ff3230b20114280 (diff)
Refactor neovim config into multiple files
Diffstat (limited to 'nvim/lua/custom/plugins/toggleterm.lua')
-rw-r--r--nvim/lua/custom/plugins/toggleterm.lua21
1 files changed, 21 insertions, 0 deletions
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', '<leader>`', ':ToggleTerm direction=float<cr>', { desc = 'Open a floating terminal' }),
+ },
+ },
+}