diff options
Diffstat (limited to 'nvim/lua/custom/plugins/toggleterm.lua')
| -rw-r--r-- | nvim/lua/custom/plugins/toggleterm.lua | 21 |
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' }), + }, + }, +} |
