mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(ui): made all highlight groups and icons configurable
This commit is contained in:
parent
3d22c496da
commit
0ea771bd70
5 changed files with 108 additions and 78 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue