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:
parent
69974b4d7e
commit
15e77291d9
15
nvim/lua/psoxizsh/plugins/config/toggleterm.lua
Normal file
15
nvim/lua/psoxizsh/plugins/config/toggleterm.lua
Normal 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
|
||||
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue