add: disable line number if terminal mode

This commit is contained in:
asep komarudin 2024-02-20 10:14:51 +07:00
parent 7a1e430fee
commit b302971eb3
3 changed files with 12 additions and 2 deletions

View file

@ -33,6 +33,16 @@ vim.cmd([[
autocmd!
autocmd User AlphaReady set showtabline=0 | autocmd BufUnload <buffer> set showtabline=2
augroup end
augroup neovim_terminal
autocmd!
" Enter Terminal-mode (insert) automatically
autocmd TermOpen * startinsert
" Disables number lines on terminal buffers
autocmd TermOpen * :set nonumber norelativenumber
" allows you to use Ctrl-c on terminal window
autocmd TermOpen * nnoremap <buffer> <C-c> i<C-c>
augroup END
]])
-- for fix error last close buffer