Merge pull request #162 from G-Rowell/dev-fixTerm

Fix terminal config issues
This commit is contained in:
siduck76 2021-07-18 11:45:12 +05:30 committed by GitHub
commit cb3f7538e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

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

View File

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