Fix #1300.
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
-" Activate the omnifunc on Nit files
-autocmd FileType nit set omnifunc=NitOmnifunc
+if !exists("g:nit_disable_omnifunc") || !g:nit_disable_omnifunc
+ " Activate the omnifunc on Nit files
+ autocmd FileType nit set omnifunc=NitOmnifunc
+endif
" Define the user command Nitdoc for ease of use
command -nargs=* Nitdoc call Nitdoc("<args>")
" Define the user command Nitdoc for ease of use
command -nargs=* Nitdoc call Nitdoc("<args>")