Skip to content

Commit

Permalink
fix(ui): setup colors when loading a float
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 3, 2023
1 parent 6ad76ec commit dbb2b60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions lua/lazy/view/float.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions lua/lazy/view/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbb2b60

Please sign in to comment.