[nvim] add indent detection

This commit is contained in:
Dmytro Meleshko 2020-01-17 20:33:06 +02:00
parent 328a75d157
commit 26ee242721
2 changed files with 11 additions and 1 deletions

View file

@ -36,10 +36,10 @@ Plug 'junegunn/vim-plug'
Plug 'Yggdroot/indentLine'
Plug 'henrik/vim-indexed-search'
Plug 'andymass/vim-matchup'
" Plug 'tommcdo/vim-exchange'
Plug 'inkarkat/vim-ingo-library' " required by LineJuggler
Plug 'inkarkat/vim-LineJuggler', { 'branch': 'stable' }
Plug 'reedes/vim-pencil'
Plug 'ciaranm/detectindent'
" }}}
" Text objects {{{

View file

@ -6,6 +6,7 @@ set virtualedit=onemore
set foldmethod=marker
" use line C-style comments instead of block ones (/* ... */)
set commentstring=//%s
@ -30,6 +31,15 @@ set commentstring=//%s
let g:indentLine_showFirstIndentLevel = 1
let g:indentLine_fileTypeExclude = ['text', 'help', 'tutor', 'man']
let g:detectindent_preferred_indent = 2
let g:detectindent_preferred_expandtab = 1
" let g:detectindent_verbosity = 0
augroup vimrc-detect-indent
autocmd!
autocmd FileType * if empty(&bt) | DetectIndent | endif
augroup END
" }}}