mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-27 03:08:56 +02:00
add: disable line number if terminal mode
This commit is contained in:
parent
7a1e430fee
commit
b302971eb3
3 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue