[nvim] make it so that indentLines doesn't close the intro screen

This commit is contained in:
Dmytro Meleshko 2021-05-16 15:55:17 +03:00
parent ca5544566a
commit 030c018bb4
2 changed files with 7 additions and 8 deletions

View File

@ -31,6 +31,13 @@ set commentstring=//%s
let g:indentLine_showFirstIndentLevel = 1
let g:indentLine_fileTypeExclude = ['text', 'help', 'tutor', 'man']
augroup vimrc-indentlines-disable
autocmd!
autocmd TermOpen * IndentLinesDisable
" <https://github.com/Yggdroot/indentLine/issues/315#issuecomment-734535963>
autocmd VimEnter * if bufname('%') == '' | IndentLinesDisable | endif
augroup END
let g:detectindent_max_lines_to_analyse = 128
let g:detectindent_check_comment_syntax = 1

View File

@ -137,12 +137,4 @@ endif
" }}}
" Terminal {{{
augroup vimrc-terminal
autocmd!
autocmd TermOpen * IndentLinesDisable
augroup END
" }}}
nnoremap <silent> <F9> <Cmd>make<CR>