mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-12 19:53:47 -05:00
make the delimitermap a global variable
This allows people to edit the delimiters at run time. The option NERDCustomDelimiters can be used in a vimrc (or similar) but is not useful after vim has loaded. So just open up the s:delimiterMap hash.
This commit is contained in:
@@ -406,6 +406,8 @@ let s:delimiterMap = {
|
||||
\ 'z8a': { 'left': ';' }
|
||||
\ }
|
||||
|
||||
let g:NERDDelimiterMap = s:delimiterMap
|
||||
|
||||
if exists("g:NERDCustomDelimiters")
|
||||
call extend(s:delimiterMap, g:NERDCustomDelimiters)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user