From d5a8c2041e0a20d08755477324529e9ba1da6daa Mon Sep 17 00:00:00 2001 From: glepnir Date: Sat, 23 May 2020 13:55:20 +0800 Subject: [PATCH] feate(plugin):add sql and dart support --- cmd/main.go | 2 ++ lang/dart.yaml | 3 +++ lang/sql.yaml | 3 +++ modules/module-lsp.vim | 9 +++++++++ scripts/generator.sh | 2 +- 5 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 lang/dart.yaml create mode 100644 lang/sql.yaml diff --git a/cmd/main.go b/cmd/main.go index 4ee357ed..aa15de75 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -199,6 +199,8 @@ func clilangqs() []string { "less", "sass", "stylus", + "sql", + "dart", } answers, err := answertemplate(questionname, message, options, pagesize) if err != nil { diff --git a/lang/dart.yaml b/lang/dart.yaml new file mode 100644 index 00000000..a9f92cc9 --- /dev/null +++ b/lang/dart.yaml @@ -0,0 +1,3 @@ + +# Dart support +- { repo: dart-lang/dart-vim-plugin,on_ft:dart } diff --git a/lang/sql.yaml b/lang/sql.yaml new file mode 100644 index 00000000..b7c5b71b --- /dev/null +++ b/lang/sql.yaml @@ -0,0 +1,3 @@ + +# Sql support +- { repo:hardcoreplayers/sql.vim,on_ft: sql } diff --git a/modules/module-lsp.vim b/modules/module-lsp.vim index 7e59b876..0611ef15 100644 --- a/modules/module-lsp.vim +++ b/modules/module-lsp.vim @@ -133,3 +133,12 @@ endif if dein#tap('vim-vue') call coc#add_extension('coc-vetur') endif + +"Dart lsp config +if dein#tap('dart-vim-plugin') + call coc#add_extension('coc-flutter') +endif + +if dein#tap('sql.vim') + call coc#add_extension('coc-sql') +endif diff --git a/scripts/generator.sh b/scripts/generator.sh index 987e2892..a4ba2d92 100644 --- a/scripts/generator.sh +++ b/scripts/generator.sh @@ -2,7 +2,7 @@ set -u -version=v0.1.2 +version=v0.1.3 APP=generator