mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[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:
parent
f0d30cae4f
commit
19eacd51ba
2 changed files with 4 additions and 1 deletions
|
@ -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'
|
||||
" }}}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue