diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-06 16:47:37 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-06 16:47:37 +0200 | 
| commit | fbc2af9e820d85e17cd08023f4dcc66545735d58 (patch) | |
| tree | 90888d9d5776591951b2d36ae1362bf8b0c37ca2 /after/ftplugin | |
| parent | d4f252565ad7098658f91bcbdf33dcce697bfb63 (diff) | |
| download | vim-polyglot-fbc2af9e820d85e17cd08023f4dcc66545735d58.tar.gz vim-polyglot-fbc2af9e820d85e17cd08023f4dcc66545735d58.zip  | |
Remove styled components, fixes #432v4.0.2
Diffstat (limited to '')
| -rw-r--r-- | after/ftplugin/javascript.vim | 39 | ||||
| -rw-r--r-- | after/ftplugin/typescript.vim | 2 | 
2 files changed, 0 insertions, 41 deletions
diff --git a/after/ftplugin/javascript.vim b/after/ftplugin/javascript.vim index 2ca2fd1c..55cb0411 100644 --- a/after/ftplugin/javascript.vim +++ b/after/ftplugin/javascript.vim @@ -45,42 +45,3 @@ augroup end  setlocal suffixesadd+=.jsx  endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 -" Vim filetype plugin file -" Language:   styled-components (js/ts) -" Maintainer: Karl Fleischmann <fleischmann.karl@gmail.com> -" URL:        https://github.com/styled-components/vim-styled-components - -fu! s:GetSyntaxNames(lnum, cnum) -  return map(synstack(a:lnum, a:cnum), 'synIDattr(v:val, "name")') -endfu - -" re-implement SynSOL of vim-jsx -fu! s:SynSOL(lnum) -  return s:GetSyntaxNames(a:lnum, 1) -endfu - -"" Return whether the current line is a jsTemplateString -fu! IsStyledDefinition(lnum) -  " iterate through all syntax items in the given line -  for item in s:SynSOL(a:lnum) -    " if syntax-item is a jsTemplateString return 1 - true -    " `==#` is a match case comparison of the item -    if item ==# 'styledDefinition' -      return 1 -    endif -  endfor - -  " fallback to 0 - false -  return 0 -endfu - -if exists('&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 -endif diff --git a/after/ftplugin/typescript.vim b/after/ftplugin/typescript.vim index 4f158684..ab1aedc8 100644 --- a/after/ftplugin/typescript.vim +++ b/after/ftplugin/typescript.vim @@ -23,5 +23,3 @@ augroup end  setlocal suffixesadd+=.tsx  endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 -endif  | 
