mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 21:00:38 +00:00
Fix terminal buffer format bug, & enable escape from terminal & visual mdoes
This commit is contained in:
parent
cf8b2ce1cb
commit
1bedbbe5c4
2 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue