diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 15:44:43 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 15:44:43 +0200 |
commit | 664aa988f6d9cdb7b75218666fbe348c85ef8b29 (patch) | |
tree | 306173199576430e6133a1ed137bd80bbc2fb01b /after/ftplugin | |
parent | 3ddca5da461ebfaa82104f82e3cbf19d1c326ade (diff) | |
download | vim-polyglot-664aa988f6d9cdb7b75218666fbe348c85ef8b29.tar.gz vim-polyglot-664aa988f6d9cdb7b75218666fbe348c85ef8b29.zip |
Update
Diffstat (limited to 'after/ftplugin')
-rw-r--r-- | after/ftplugin/javascript.vim | 6 | ||||
-rw-r--r-- | after/ftplugin/typescript.vim | 4 |
2 files changed, 9 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 diff --git a/after/ftplugin/typescript.vim b/after/ftplugin/typescript.vim index 29ac50a6..21da03be 100644 --- a/after/ftplugin/typescript.vim +++ b/after/ftplugin/typescript.vim @@ -25,3 +25,7 @@ augroup jsx_comment augroup end setlocal suffixesadd+=.tsx +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 + finish +endif + |