Browse Source
fix(install_servers): remove the `+lsp` flag properly
my-config
NTBBloodbath
3 years ago
No known key found for this signature in database
GPG Key ID: 18D6730BC846AAC5
1 changed files with
4 additions and
1 deletions
-
lua/doom/core/config/init.lua
|
|
@ -398,9 +398,12 @@ M.install_servers = function(langs) |
|
|
|
local installed_servers = lspinstall.installed_servers() |
|
|
|
|
|
|
|
for _, lang in ipairs(langs) do |
|
|
|
local lang_str = lang |
|
|
|
lang = lang:gsub('%s+%+lsp', '') |
|
|
|
|
|
|
|
-- If the +lsp flag exists and the language server is not installed yet |
|
|
|
if |
|
|
|
lang:find('%+lsp') and not utils.has_value(installed_servers, lang) |
|
|
|
lang_str:find('%+lsp') and (not utils.has_value(installed_servers, lang)) |
|
|
|
then |
|
|
|
lspinstall.install_server(lang) |
|
|
|
end |
|
|
|