I broke up with neovim....vim is my best friend now

This commit is contained in:
LinlyBoi
2023-04-30 08:14:07 +03:00
parent 0d185449c5
commit 4a4a6b1e81
5245 changed files with 468325 additions and 25 deletions

View File

@@ -0,0 +1,37 @@
let s:definition = {
\ 'vimlsp': { -> exists('g:lsp_loaded') },
\ 'lsc': { -> exists('g:loaded_lsc') },
\ 'lcn': { -> exists('g:LanguageClient_serverCommands') },
\ 'asyncomplete': { -> exists('g:asyncomplete_loaded') },
\ 'mucomplete': { -> exists('g:loaded_mucomplete') },
\ 'ddc': { -> s:runtimepath("autoload/ddc.vim") },
\ 'yegappan_lsp': { -> s:runtimepath('autoload/lsp/lspserver.vim') },
\ }
let s:cache = {}
"
" vsnip_integ#detection#definition
"
function! vsnip_integ#detection#definition() abort
return copy(s:definition)
endfunction
"
" vsnip_integ#detection#exists
"
function! vsnip_integ#detection#exists(id) abort
if !has_key(s:cache, a:id)
let s:cache[a:id] = s:definition[a:id]()
endif
return s:cache[a:id]
endfunction
"
" runtimepath
"
function! s:runtimepath(path) abort
return !empty(globpath(&runtimepath, a:path))
endfunction