From 06518f1b15ee5c1deb2ebd8a5cdcee224218f299 Mon Sep 17 00:00:00 2001 From: Alex Suraci Date: Sat, 30 Nov 2024 12:10:16 -0500 Subject: [PATCH] switch back to floaterm 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 --- lua/custom/plugins/init.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 543a9484665..b11d2c62e0f 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -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', '', ':FloatermToggle', { silent = true }) + vim.keymap.set('t', '', ':FloatermToggle', { silent = true }) - vim.keymap.set('n', '', 'lua require("FTerm").toggle()') - vim.keymap.set('t', '', 'lua require("FTerm").toggle()') + -- Highlight FloatTerm border + vim.cmd 'highlight! link FloatermBorder Comment' end, }, {