Browse Source

fix(config): set termguicolors on start, avoid a strange error that I was having

my-config
NTBBloodbath 3 years ago
parent
commit
0bad1c3693
No known key found for this signature in database GPG Key ID: 18D6730BC846AAC5
  1. 12
      lua/doom/core/config/init.lua

12
lua/doom/core/config/init.lua

@ -24,6 +24,11 @@ else
) )
end end
-- Set termguicolors on load
if vim.fn.has('vim_starting') then
vim.opt.termguicolors = true
end
-- {{{ Default doom_config values -- {{{ Default doom_config values
-- default_doom_config_values loads the default doom_config values -- default_doom_config_values loads the default doom_config values
@ -418,6 +423,12 @@ end
-- --
-- @param langs The list of languages in the doomrc -- @param langs The list of languages in the doomrc
M.install_servers = function(langs) M.install_servers = function(langs)
-- selene: allow(undefined_variable)
if
packer_plugins
and packer_plugins['lspinstall']
and packer_plugins['lspinstall'].loaded
then
local lspinstall = require('lspinstall') local lspinstall = require('lspinstall')
local installed_servers = lspinstall.installed_servers() local installed_servers = lspinstall.installed_servers()
local available_servers = lspinstall.available_servers() local available_servers = lspinstall.available_servers()
@ -445,6 +456,7 @@ M.install_servers = function(langs)
end end
end end
end end
end
-- Check plugins updates on start if enabled -- Check plugins updates on start if enabled
if M.load_config().doom.check_updates then if M.load_config().doom.check_updates then

Loading…
Cancel
Save