diff options
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>') |