Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 951 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 951 Bytes

flexterm.nvim

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.

Installation

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,
    }
})