mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-10 10:53:47 -05:00
Changed the way option defaults are defined
This commit is contained in:
@@ -19,8 +19,21 @@ command! IndentGuidesEnable call s:IndentGuidesEnable()
|
|||||||
command! IndentGuidesDisable call s:IndentGuidesDisable()
|
command! IndentGuidesDisable call s:IndentGuidesDisable()
|
||||||
|
|
||||||
" Default options
|
" Default options
|
||||||
let g:indent_guides_indent_levels = 50
|
let g:indent_guides_indent_levels =
|
||||||
let g:indent_guides_debug = 0
|
\ exists('g:indent_guides_indent_levels') ?
|
||||||
|
\ g:indent_guides_indent_levels : 50
|
||||||
|
|
||||||
|
let g:indent_guides_debug =
|
||||||
|
\ exists('g:indent_guides_debug') ?
|
||||||
|
\ g:indent_guides_debug : 0
|
||||||
|
|
||||||
|
let g:indent_guides_auto_colors =
|
||||||
|
\ exists('g:indent_guides_auto_colors') ?
|
||||||
|
\ g:indent_guides_auto_colors : 1
|
||||||
|
|
||||||
|
let g:indent_guides_auto_colors_change_percent =
|
||||||
|
\ exists('g:indent_guides_auto_colors_change_percent') ?
|
||||||
|
\ g:indent_guides_auto_colors_change_percent : 0.20
|
||||||
|
|
||||||
" Default mapping
|
" Default mapping
|
||||||
nmap <Leader>ig :IndentGuidesToggle<CR>
|
nmap <Leader>ig :IndentGuidesToggle<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user