mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] add indent detection
This commit is contained in:
parent
328a75d157
commit
26ee242721
2 changed files with 11 additions and 1 deletions
|
@ -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 {{{
|
||||
|
|
|
@ -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
|
||||
|
||||
" }}}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue