snailed
/
taolf
Archived
2
0
Fork 0
This commit is contained in:
Luca Bilke 2024-01-28 23:44:04 +01:00
parent 18c465b922
commit cfae02dbf4
No known key found for this signature in database
GPG Key ID: AD6630D0A1E650AC
1 changed files with 6 additions and 6 deletions

View File

@ -22,11 +22,11 @@ local default = {
---@param cfg Lf.Config existing configuration options
local function validate(cfg)
vim.validate({
default_cmd = {cfg.default_cmd, "s", false},
default_action = {cfg.default_action, "s", false},
dir = {cfg.dir, "s", false},
focus_on_open = {cfg.focus_on_open, "b", false},
count = {cfg.count, "n", true},
default_cmd = { cfg.default_cmd, "s", false },
default_action = { cfg.default_action, "s", false },
dir = { cfg.dir, "s", false },
focus_on_open = { cfg.focus_on_open, "b", false },
count = { cfg.count, "n", true },
})
end
@ -69,7 +69,7 @@ return setmetatable(Config, {
__index = function(self, key)
return rawget(self, key)
end,
---@diagnostic disable-next-line: unused-local
---@diagnostic disable-next-line: unused-local
__newindex = function(self, key, val)
api.nvim_err_writeln(("do not set invalid config values: %s => %s"):format(key, val))
end,