[Question]: how to check vim.opt.foldmethod value?

forgive me about lua knowleadge :innocent:

print(vim.opt.foldmethod) will be a table

how to check vim.opt.foldmethod value equal syntax or indent ?

:lua print(vim.o.foldmethod)
:lua print(vim.opt.foldmethod:get())

You can see examples in :h vim.opt

3 Likes