linting
This commit is contained in:
parent
18c465b922
commit
cfae02dbf4
|
@ -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,
|
||||
|
|
Reference in New Issue