Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary variables for autoload sources #242

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/bash.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if exists('g:easycomplete_bash')
finish
endif
let g:easycomplete_bash = 1

function! easycomplete#sources#bash#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'bashls',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/cmake.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_cmake')
finish
endif
let g:easycomplete_sources_cmake = 1

" TODO 仍未调通,应该是 cmake-languageserver 本身的 bug
" 参考:https://github.com/regen100/cmake-language-server/issues/9
function! easycomplete#sources#cmake#constructor(opt, ctx)
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/cpp.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_cpp')
finish
endif
let g:easycomplete_sources_cpp = 1

function! easycomplete#sources#cpp#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'clangd',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/cs.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if exists('g:easycomplete_cs')
finish
endif
let g:easycomplete_cs = 1

function! easycomplete#sources#cs#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'omnisharp-lsp',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/css.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if exists('g:easycomplete_css')
finish
endif
let g:easycomplete_css = 1

function! easycomplete#sources#css#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'cssls',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/dart.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if exists('g:easycomplete_dart')
finish
endif
let g:easycomplete_dart = 1

function! easycomplete#sources#dart#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'dartls',
Expand Down
4 changes: 0 additions & 4 deletions autoload/easycomplete/sources/deno.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if get(g:, 'easycomplete_sources_deno')
finish
endif
let g:easycomplete_sources_deno = 1
let s:file_extensions = ["js","jsx","ts","tsx","mjs","ejs"]

function! easycomplete#sources#deno#constructor(opt, ctx)
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/go.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if exists('g:easycomplete_gopls')
finish
endif
let g:easycomplete_gopls = 1

function! easycomplete#sources#go#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'gopls',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/grvy.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_grvy')
finish
endif
let g:easycomplete_sources_grvy = 1

function! easycomplete#sources#grvy#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'groovyls',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/html.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_html')
finish
endif
let g:easycomplete_sources_html= 1

function! easycomplete#sources#html#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'html',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/java.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_java')
finish
endif
let g:easycomplete_sources_java = 1

function! easycomplete#sources#java#constructor(opt, ctx)
" 注册 lsp
call easycomplete#RegisterLspServer(a:opt, {
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/json.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if exists('g:easycomplete_json')
finish
endif
let g:easycomplete_json = 1

function! easycomplete#sources#json#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'jsonls',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/kotlin.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if exists('g:easycomplete_kotlin')
finish
endif
let g:easycomplete_kotlin = 1

function! easycomplete#sources#kotlin#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'kotlin_language_server',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/lua.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_lua')
finish
endif
let g:easycomplete_sources_lua = 1

let g:sumneko_lua_language_server_workspace_config = {
\ 'Lua': {
\ 'color': {
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/nim.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if exists('g:easycomplete_nim')
finish
endif
let g:easycomplete_nim = 1

function! easycomplete#sources#nim#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'nimls',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/php.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if exists('g:easycomplete_sources_php')
finish
endif
let g:easycomplete_sources_php = 1

function! easycomplete#sources#php#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'intelephense',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/py.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_py')
finish
endif
let g:easycomplete_sources_py = 1

function! easycomplete#sources#py#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'pylsp',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/r.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_r')
finish
endif
let g:easycomplete_sources_r = 1

function! easycomplete#sources#r#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'r-languageserver',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/ruby.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if exists('g:easycomplete_rb')
finish
endif
let g:easycomplete_rb = 1

function! easycomplete#sources#ruby#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'solargraph',
Expand Down
6 changes: 0 additions & 6 deletions autoload/easycomplete/sources/rust.vim
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@

if exists('g:easycomplete_rust')
finish
endif
let g:easycomplete_rust = 1

function! easycomplete#sources#rust#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'rust_analyzer',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/tn.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if exists('g:easycomplete_tn')
finish
endif
let g:easycomplete_tn = 1

let s:tn_job = v:null
let s:ctx = v:null
let s:opt = v:null
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/ts.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_ts')
finish
endif
let g:easycomplete_sources_ts = 1

augroup easycomplete#sources#ts#InitLocalVars
" 正在运行中的 job 指针
" {
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/vim.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_vim')
finish
endif
let g:easycomplete_sources_vim = 1

function! easycomplete#sources#vim#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'vimls',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/xml.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_xml')
finish
endif
let g:easycomplete_sources_xml = 1

function! easycomplete#sources#xml#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'lemminx',
Expand Down
5 changes: 0 additions & 5 deletions autoload/easycomplete/sources/yaml.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if get(g:, 'easycomplete_sources_yaml')
finish
endif
let g:easycomplete_sources_yaml = 1

function! easycomplete#sources#yaml#constructor(opt, ctx)
call easycomplete#RegisterLspServer(a:opt, {
\ 'name': 'yamlls',
Expand Down