nvim/plug: +toggleterm.nvim@v2

Provides a floating terminal window that can be easily toggled, bound to
`<C-Up>`.

Not much more to say, this is just awesome.
This commit is contained in:
Paul Stemmet 2022-09-10 18:54:47 +00:00
parent 69974b4d7e
commit 15e77291d9
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,15 @@
return function()
local tt, util = require 'toggleterm', require 'psoxizsh.util'
local defaults = {
open_mapping = '<C-Up>',
start_in_insert = true,
insert_mappings = false,
terminal_mappings = true,
direction = 'float',
float_opts = { border = 'curved' },
}
tt.setup(util.mconfig('config.toggleterm', defaults))
end

View File

@ -175,6 +175,12 @@ local plugins = {
cmd = { 'TmuxNavigateLeft', 'TmuxNavigateDown', 'TmuxNavigateUp', 'TmuxNavigateRight', 'TmuxNavigatePrevious' },
config = require 'psoxizsh.plugins.config.vim-tmux-navigator'
},
-- Terminal
{ 'akinsho/toggleterm.nvim',
tag = 'v2.*',
config = require 'psoxizsh.plugins.config.toggleterm'
},
}
local function concatArray(a, b)