fix: option with values array

This commit is contained in:
Folke Lemaitre 2024-07-15 15:07:46 +02:00
parent 82a3ccc4d6
commit 4ca9cb6a1c
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 4 additions and 4 deletions

View file

@ -81,9 +81,9 @@ function M.option(option, values)
set = function(state)
if values then
if state then
vim.opt_local[option] = values[1]
else
vim.opt_local[option] = values[2]
else
vim.opt_local[option] = values[1]
end
else
---@diagnostic disable-next-line: no-unknown