diff options
author | nil <niljo@airmail.cc> | 2025-01-14 20:14:37 +0100 |
---|---|---|
committer | nil <niljo@airmail.cc> | 2025-01-14 20:14:37 +0100 |
commit | 2f483e68303c33d6aa3723d887b09998c3f20ee4 (patch) | |
tree | 29ec62ba1cf3f6b10cffa2efd8f6da41f5db5603 /lua/after/plugin/fterm.lua |
Diffstat (limited to 'lua/after/plugin/fterm.lua')
-rwxr-xr-x | lua/after/plugin/fterm.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/after/plugin/fterm.lua b/lua/after/plugin/fterm.lua new file mode 100755 index 0000000..55fac0f --- /dev/null +++ b/lua/after/plugin/fterm.lua @@ -0,0 +1,12 @@ +require'FTerm'.setup({ + border = 'double', + dimensions = { + height = 0.8, + width = 0.8, + }, +}) + +-- Example keybindings +vim.keymap.set('n', '<C-p>', '<CMD>lua require("FTerm").toggle()<CR>') +vim.keymap.set('t', '<C-p>', '<C-\\><C-n><CMD>lua require("FTerm").toggle()<CR>') +vim.keymap.set('t', '<C-x>', '<C-\\><C-n><CMD>lua require("FTerm").exit()<CR>') |