mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-02-27 17:58:41 +08:00
Add work around to support lazy-loading
Closes #176, thanks to @chilicuil.
This commit is contained in:
parent
a5b5caff08
commit
9b86e000f2
@ -2878,4 +2878,9 @@ inoremap <silent> <plug>NERDCommenterInsert <SPACE><BS><ESC>:call NERDComment('i
|
||||
|
||||
" switch to/from alternative delimiters (does not use wrapper function)
|
||||
nnoremap <plug>NERDCommenterAltDelims :call <SID>SwitchToAlternativeDelimiters(1)<cr>
|
||||
|
||||
" This is a workaround to enable lazy-loading from supported plugin managers:
|
||||
" See https://github.com/scrooloose/nerdcommenter/issues/176
|
||||
call s:SetUpForNewFiletype(&filetype, 1)
|
||||
|
||||
" vim: set foldmethod=marker :
|
||||
|
Loading…
x
Reference in New Issue
Block a user