nvim: plugins: Add toggleterm

Serves as a good replacement to floaterm.
This commit is contained in:
Sanchayan Maity 2021-10-05 11:11:41 +05:30
parent 2c0a4473f6
commit a8d0a43556
2 changed files with 15 additions and 0 deletions

View 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
}

View File

@ -61,6 +61,8 @@ local init = function ()
use 'justinmk/vim-dirvish'
-- Show leader key bindings
use 'folke/which-key.nvim'
--Toggle terminal
use 'akinsho/toggleterm.nvim'
-- Take care of sudo
use 'lambdalisue/suda.vim'
-- Alignment