[nvim] use a fork of detectindent which can ignore comments at the cost of performance (let's see how this will go)

This commit is contained in:
Dmytro Meleshko 2020-08-30 20:32:18 +03:00
parent f0d30cae4f
commit 19eacd51ba
2 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,7 @@ Plug 'junegunn/vim-plug'
Plug 'inkarkat/vim-ingo-library' " required by LineJuggler
Plug 'inkarkat/vim-LineJuggler', { 'branch': 'stable' }
Plug 'reedes/vim-pencil'
Plug 'ciaranm/detectindent'
Plug 'idbrii/detectindent'
Plug 'tommcdo/vim-exchange'
" }}}

View File

@ -31,6 +31,9 @@ set commentstring=//%s
let g:indentLine_showFirstIndentLevel = 1
let g:indentLine_fileTypeExclude = ['text', 'help', 'tutor', 'man']
let g:detectindent_max_lines_to_analyse = 128
let g:detectindent_check_comment_syntax = 1
function s:DetectIndent()
if !empty(&bt) | return | endif
let g:detectindent_preferred_indent = &l:shiftwidth