summaryrefslogtreecommitdiffstats
path: root/after/ftplugin/javascript.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-09-04 15:44:43 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-09-04 15:44:43 +0200
commit664aa988f6d9cdb7b75218666fbe348c85ef8b29 (patch)
tree306173199576430e6133a1ed137bd80bbc2fb01b /after/ftplugin/javascript.vim
parent3ddca5da461ebfaa82104f82e3cbf19d1c326ade (diff)
downloadvim-polyglot-664aa988f6d9cdb7b75218666fbe348c85ef8b29.tar.gz
vim-polyglot-664aa988f6d9cdb7b75218666fbe348c85ef8b29.zip
Update
Diffstat (limited to 'after/ftplugin/javascript.vim')
-rw-r--r--after/ftplugin/javascript.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/after/ftplugin/javascript.vim b/after/ftplugin/javascript.vim
index 093f0b7b..4a6346d9 100644
--- a/after/ftplugin/javascript.vim
+++ b/after/ftplugin/javascript.vim
@@ -83,6 +83,10 @@ fu! IsStyledDefinition(lnum)
endfu
if exists('&ofu')
- let b:prevofu=&ofu
+ if &ofu
+ " Do not keep track of previous omnifunc if it was not set in the first
+ " place
+ let b:prevofu=&ofu
+ endif
setl omnifunc=styledcomplete#CompleteSC
endif