feat(ui): made all highlight groups and icons configurable

This commit is contained in:
Folke Lemaitre 2022-12-26 10:24:47 +01:00
parent 3d22c496da
commit 0ea771bd70
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 108 additions and 78 deletions

View file

@ -77,6 +77,10 @@ function M:mount()
end
---@class LazyViewWinOpts
---@field width number
---@field height number
---@field row number
---@field col number
local win_opts = {
relative = "editor",
style = "minimal",
@ -111,6 +115,7 @@ function M:mount()
self:layout()
local config = {}
for _, key in ipairs({ "relative", "width", "height", "col", "row" }) do
---@diagnostic disable-next-line: no-unknown
config[key] = self.opts.win_opts[key]
end
vim.api.nvim_win_set_config(self.win, config)