mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
feat(config): get config for snack with defaults and custom opts
This commit is contained in:
parent
7ceeb47e54
commit
b3d08beb8c
3 changed files with 5 additions and 5 deletions
|
|
@ -107,7 +107,7 @@ function M.new(opts)
|
|||
local self = setmetatable({}, { __index = M })
|
||||
id = id + 1
|
||||
self.id = id
|
||||
opts = vim.tbl_deep_extend("force", {}, Snacks.config.get("float", defaults), opts or {})
|
||||
opts = Snacks.config.get("float", defaults, opts)
|
||||
opts =
|
||||
vim.tbl_deep_extend("force", {}, vim.deepcopy(opts.position == "float" and defaults_float or defaults_split), opts)
|
||||
if opts.win.style == "minimal" then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue