Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' of github.com:NTBBloodbath/doom-nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
NTBBloodbath committed Jul 13, 2021
2 parents 73a0148 + 1071386 commit 03c4de8
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions lua/doom/core/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end

-- Set termguicolors on load
if vim.fn.has('vim_starting') then
vim.opt.termguicolors = true
vim.opt.termguicolors = true
end

-- {{{ Default doom_config values
Expand Down Expand Up @@ -429,32 +429,32 @@ M.install_servers = function(langs)
and packer_plugins['lspinstall']
and packer_plugins['lspinstall'].loaded
then
local lspinstall = require('lspinstall')
local installed_servers = lspinstall.installed_servers()
local available_servers = lspinstall.available_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_str:find('%+lsp')
and (not utils.has_value(installed_servers, lang))
then
-- Try to install the server only if there is a server available for
-- the language, oterwise raise a warning
if utils.has_value(available_servers, lang) then
lspinstall.install_server(lang)
else
log.warn(
'The language '
.. lang
.. ' does not have a server, please remove the "+lsp" flag'
)
end
end
end
local lspinstall = require('lspinstall')
local installed_servers = lspinstall.installed_servers()
local available_servers = lspinstall.available_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_str:find('%+lsp')
and (not utils.has_value(installed_servers, lang))
then
-- Try to install the server only if there is a server available for
-- the language, oterwise raise a warning
if utils.has_value(available_servers, lang) then
lspinstall.install_server(lang)
else
log.warn(
'The language '
.. lang
.. ' does not have a server, please remove the "+lsp" flag'
)
end
end
end
end
end

Expand Down

0 comments on commit 03c4de8

Please sign in to comment.