nvim: plugins: Add toggleterm
Serves as a good replacement to floaterm.
This commit is contained in:
parent
2c0a4473f6
commit
a8d0a43556
2 changed files with 15 additions and 0 deletions
13
nvim/.config/nvim/after/plugin/toggleterm.lua
Normal file
13
nvim/.config/nvim/after/plugin/toggleterm.lua
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
require("toggleterm").setup{
|
||||||
|
size = 20,
|
||||||
|
open_mapping = [[<C-z>]],
|
||||||
|
hide_numbers = true,
|
||||||
|
shade_filetypes = {},
|
||||||
|
shade_terminals = true,
|
||||||
|
shading_factor = 1,
|
||||||
|
start_in_insert = true,
|
||||||
|
insert_mappings = true,
|
||||||
|
persist_size = true,
|
||||||
|
direction = 'tab',
|
||||||
|
close_on_exit = true
|
||||||
|
}
|
|
@ -61,6 +61,8 @@ local init = function ()
|
||||||
use 'justinmk/vim-dirvish'
|
use 'justinmk/vim-dirvish'
|
||||||
-- Show leader key bindings
|
-- Show leader key bindings
|
||||||
use 'folke/which-key.nvim'
|
use 'folke/which-key.nvim'
|
||||||
|
--Toggle terminal
|
||||||
|
use 'akinsho/toggleterm.nvim'
|
||||||
-- Take care of sudo
|
-- Take care of sudo
|
||||||
use 'lambdalisue/suda.vim'
|
use 'lambdalisue/suda.vim'
|
||||||
-- Alignment
|
-- Alignment
|
||||||
|
|
Loading…
Reference in a new issue