Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

buggler.nvim

Toggle neovim terminal buffers with a single keystroke.

Installation

Plug

Plug 'friedow/buggler.nvim'

packer.nvim

use 'friedow/buggler.nvim'

Usage

Just add a keybind and start toggling terminals.

vim.keymap.set("n", "<C-1>", function()
  require("buggler").toggle_terminal_buffer("Terminal 1")
end)

vim.keymap.set("n", "<C-2>", function()
  require("buggler").toggle_terminal_buffer("Terminal 2")
end)

Running a command

Pass a command as the second argument to run it in the terminal. The command is started automatically when the terminal is first opened and restarted whenever it is toggled back and the process has exited.

vim.keymap.set("n", "<C-o>", function()
  require("buggler").toggle_terminal_buffer("opencode", "opencode")
end)

About

Toggle neovim terminal buffers with a single keystroke.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Contributors

Languages