mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 04:53:51 -05:00
Include missing file from styledcomponents, fixes #418
This commit is contained in:
@@ -161,7 +161,7 @@ If you need full functionality of any plugin, please use it directly with your p
|
|||||||
- [slime](https://github.com/slime-lang/vim-slime-syntax) (syntax, indent)
|
- [slime](https://github.com/slime-lang/vim-slime-syntax) (syntax, indent)
|
||||||
- [smt2](https://github.com/bohlender/vim-smt2) (syntax, autoload, ftplugin)
|
- [smt2](https://github.com/bohlender/vim-smt2) (syntax, autoload, ftplugin)
|
||||||
- [solidity](https://github.com/tomlion/vim-solidity) (syntax, indent, ftplugin)
|
- [solidity](https://github.com/tomlion/vim-solidity) (syntax, indent, ftplugin)
|
||||||
- [styled-components](https://github.com/styled-components/vim-styled-components#main) (syntax, indent, ftplugin)
|
- [styled-components](https://github.com/styled-components/vim-styled-components#main) (after)
|
||||||
- [stylus](https://github.com/wavded/vim-stylus) (syntax, indent, ftplugin)
|
- [stylus](https://github.com/wavded/vim-stylus) (syntax, indent, ftplugin)
|
||||||
- [svelte](https://github.com/evanleck/vim-svelte) (syntax, indent)
|
- [svelte](https://github.com/evanleck/vim-svelte) (syntax, indent)
|
||||||
- [svg-indent](https://github.com/jasonshell/vim-svg-indent) (indent)
|
- [svg-indent](https://github.com/jasonshell/vim-svg-indent) (indent)
|
||||||
|
|||||||
21
after/autoload/styledcomplete.vim
Normal file
21
after/autoload/styledcomplete.vim
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Vim completion script
|
||||||
|
" Language: styled-components (js/ts)
|
||||||
|
" Maintainer: Karl Fleischmann <fleischmann.karl@gmail.com>
|
||||||
|
" URL: https://github.com/styled-components/vim-styled-components
|
||||||
|
|
||||||
|
fun! styledcomplete#CompleteSC(findstart, base)
|
||||||
|
if IsStyledDefinition(line('.'))
|
||||||
|
return csscomplete#CompleteCSS(a:findstart, a:base)
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Only trigger original omnifunc if it was set in the first place
|
||||||
|
if exists('b:prevofu')
|
||||||
|
" create a funcref to call with the previous omnicomplete function
|
||||||
|
let s:funcref = function(b:prevofu)
|
||||||
|
return s:funcref(a:findstart, a:base)
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
2
build
2
build
@@ -271,7 +271,7 @@ PACKS="
|
|||||||
slime:slime-lang/vim-slime-syntax
|
slime:slime-lang/vim-slime-syntax
|
||||||
smt2:bohlender/vim-smt2
|
smt2:bohlender/vim-smt2
|
||||||
solidity:tomlion/vim-solidity
|
solidity:tomlion/vim-solidity
|
||||||
styled-components:styled-components/vim-styled-components#main
|
styled-components:styled-components/vim-styled-components#main:_ALL
|
||||||
stylus:wavded/vim-stylus
|
stylus:wavded/vim-stylus
|
||||||
svelte:evanleck/vim-svelte
|
svelte:evanleck/vim-svelte
|
||||||
svg-indent:jasonshell/vim-svg-indent
|
svg-indent:jasonshell/vim-svg-indent
|
||||||
|
|||||||
Reference in New Issue
Block a user