This commit is contained in:
RingOfStorms (Joshua Bell) 2023-10-26 02:53:56 -05:00
parent a88587fe24
commit ad0be82ef8
2 changed files with 17 additions and 2 deletions

14
lua/plugins/floatterm.lua Normal file
View file

@ -0,0 +1,14 @@
return {
"voldikss/vim-floaterm",
cmd = { "FloatermNew", "FloatermToggle" },
keys = {
{
"<leader>xx",
"<cmd>:'<,'>FloatermNew --autoclose=2<cr>",
desc = "Run selected as command in float terminal",
mode = "v"
},
{ "<C-x>", "<cmd>FloatermToggle Terminal<cr>", desc = "Toggle float terminal" },
{ "<C-z>", "<cmd>FloatermNew --disposable<cr>", desc = "Toggle disposable float terminal", mode = { "v", "n" }}
},
}