fix(plugins): fix occasional notify error if it loads before theme

This commit is contained in:
Matt Leong 2021-10-29 14:44:56 -07:00
parent 8064cf355a
commit f1230ee2c7
2 changed files with 6 additions and 6 deletions

View file

@ -78,7 +78,6 @@ local default_config = {
}
local config = vim.tbl_deep_extend('force', default_config, user_config)
-- default servers that can be formatted
local user_servers = vim.tbl_keys(config.lsp.servers)
function config.lsp.can_client_format(client_name)
if config.lsp.servers[client_name] == true then

View file

@ -52,6 +52,7 @@ return packer.startup(function()
})
vim.notify = require('notify')
end,
after = 'tokyonight.nvim',
disable = vim.tbl_contains(user_plugins.disable, 'notify'),
})