fix(ui): setup colors when loading a float

This commit is contained in:
Folke Lemaitre 2023-06-03 14:40:14 +02:00
parent 6ad76ecc26
commit dbb2b609f6
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 1 additions and 2 deletions

View File

@ -37,6 +37,7 @@ end
---@param opts? LazyFloatOptions
function M:init(opts)
require("lazy.view.colors").setup()
self.opts = vim.tbl_deep_extend("force", {
size = Config.options.ui.size,
style = "minimal",

View File

@ -65,8 +65,6 @@ function M.create()
vim.wo[self.win].wrap = false
end
require("lazy.view.colors").setup()
self.state = vim.deepcopy(default_state)
self.render = Render.new(self)