Skip to content

Commit

Permalink
switch back to floaterm
Browse files Browse the repository at this point in the history
FTerm is nice but it gets really confused with keybinds when you nest
vim inside of it, which I do all the time

Signed-off-by: Alex Suraci <[email protected]>
  • Loading branch information
vito committed Nov 30, 2024
1 parent 7c0b18c commit 06518f1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lua/custom/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,21 @@ return {
'tpope/vim-vinegar', -- press - to go to parent dir
{
-- floating term
'numToStr/FTerm.nvim',
'voldikss/vim-floaterm',
config = function()
require('FTerm').setup {
cmd = 'fish',
border = 'rounded',
dimensions = {
height = 0.9,
width = 0.9,
x = 0.5,
y = 0.5,
},
}
-- FloatTerm Configuration
vim.g.floaterm_shell = 'fish'
vim.g.floaterm_borderchars = '─│─│╭╮╯╰'
vim.g.floaterm_width = 0.9
vim.g.floaterm_height = 0.9
vim.g.floaterm_giteditor = false

-- Keymaps for FloatTerm
vim.keymap.set('n', '<C-t>', ':FloatermToggle<CR>', { silent = true })
vim.keymap.set('t', '<C-t>', '<C-\\><C-n>:FloatermToggle<CR>', { silent = true })

vim.keymap.set('n', '<C-t>', '<CMD>lua require("FTerm").toggle()<CR>')
vim.keymap.set('t', '<C-t>', '<C-\\><C-n><CMD>lua require("FTerm").toggle()<CR>')
-- Highlight FloatTerm border
vim.cmd 'highlight! link FloatermBorder Comment'
end,
},
{
Expand Down

0 comments on commit 06518f1

Please sign in to comment.