Fix terminal buffer format bug, & enable escape from terminal & visual mdoes

This commit is contained in:
Galen Rowell 2021-07-18 15:42:54 +10:00
parent cf8b2ce1cb
commit 1bedbbe5c4
2 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,10 @@ map("v", "x", [=[ "_x ]=], opt)
this line too ]]
--
-- escape with 'jk' mapping
vim.api.nvim_set_keymap("i", "jk", "<esc>", {})
vim.api.nvim_set_keymap("v", "jk", "<esc>", {})
vim.api.nvim_set_keymap("t", "jk", "<esc>", {})
-- Don't copy the replaced text after pasting in visual mode
map("v", "p", '"_dP', opt)

View File

@ -4,9 +4,8 @@ local M = {}
M.hideStuff = function()
vim.api.nvim_exec(
[[
au BufEnter term://* setlocal nonumber
au TermOpen term://* setlocal nonumber laststatus=0
au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif
au BufEnter term://* set laststatus=0
]],
false
)