toggleterm fixes

This commit is contained in:
Norm Rasmussen
2022-06-30 14:16:47 -04:00
parent 75ffdb60ea
commit 44a4c3f80f
5 changed files with 66 additions and 10 deletions

View File

@ -6,6 +6,7 @@ local default_opts = { noremap = true, silent = true }
-- Fast saving with <leader> and s
map('n', '<leader>s', ':w<CR>', default_opts)
map('n', '<leader>a', ':w|:luafile %<CR>', default_opts)
map('i', '<leader>s', '<C-c>:w<CR>', default_opts)
-- Move around splits using Ctrl + {h,j,k,l}
@ -27,8 +28,9 @@ map('n', '<leader>r', ':tabclose<CR>', default_opts)
-- Applications and Plugins shortcuts
-----------------------------------------------------------
-- Open terminal
-- map('n', '<C-t>', ':Term<CR>', { noremap = true })
-- Open terminal as Float
--map('n', '<c-o>', ':ToggleTerm dir=/Users/normrasmussen/ direction=float<CR>', default_opts)
-- Vista Shortcuts
map('n', '<leader>v', ':Vista!!<CR>', default_opts) -- show Vista panel