1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 23:40:06 +08:00

fix(plugins): fix get_config_name function

close https://github.com/SpaceVim/SpaceVim/issues/4817
This commit is contained in:
wsdjeg 2023-03-30 23:28:30 +08:00
parent 231623f8fb
commit 7b1f0b5d3a

View File

@ -222,6 +222,8 @@ function! s:get_config_name(name) abort
return a:name return a:name
elseif a:name =~# '\.nvim$' elseif a:name =~# '\.nvim$'
return substitute(a:name, '\.nvim$', '.vim', 'g') return substitute(a:name, '\.nvim$', '.vim', 'g')
elseif a:name =~# '\.lua$'
return substitute(a:name, '\.lua$', '.vim', 'g')
else else
return a:name . '.vim' return a:name . '.vim'
endif endif