A flexible, customizable terminal toggle plugin for Neovim. It supports both floating and bottom terminal modes, giving you full control over the terminal window appearance and positioning.
Use lazy.nvim to install the plugin:
require("lazy").setup({
{
"sajibt/flexterm.nvim",
config = function()
local flexterm = require("flexterm")
-- Configure the terminal mode (bottom or floating)
flexterm.setup({
mode = "bottom", -- Set the terminal mode here (bottom or floating)
})
-- Set up keybindings for toggling the terminal
vim.keymap.set('n', '<Leader>t', flexterm.toggleterm, { desc = "Toggle FlexTerm" })
vim.keymap.set('t', '<Leader>t', flexterm.toggleterm, { desc = "Toggle FlexTerm" })
end,
}
})