mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-06 23:44:41 +02:00
fix: option with values array
This commit is contained in:
parent
82a3ccc4d6
commit
4ca9cb6a1c
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue