From 030c018bb4a1c51ffa6895b2840c578d37db1053 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Sun, 16 May 2021 15:55:17 +0300 Subject: [PATCH] [nvim] make it so that indentLines doesn't close the intro screen --- nvim/plugin/editing.vim | 7 +++++++ nvim/plugin/interface.vim | 8 -------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/nvim/plugin/editing.vim b/nvim/plugin/editing.vim index 8b2ec27..62b7c4c 100644 --- a/nvim/plugin/editing.vim +++ b/nvim/plugin/editing.vim @@ -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 + " + autocmd VimEnter * if bufname('%') == '' | IndentLinesDisable | endif + augroup END + let g:detectindent_max_lines_to_analyse = 128 let g:detectindent_check_comment_syntax = 1 diff --git a/nvim/plugin/interface.vim b/nvim/plugin/interface.vim index 48619e1..11671da 100644 --- a/nvim/plugin/interface.vim +++ b/nvim/plugin/interface.vim @@ -137,12 +137,4 @@ endif " }}} -" Terminal {{{ - augroup vimrc-terminal - autocmd! - autocmd TermOpen * IndentLinesDisable - augroup END -" }}} - - nnoremap make