forgive me about lua knowleadge
print(vim.opt.foldmethod) will be a table
how to check vim.opt.foldmethod value equal syntax or indent ?
forgive me about lua knowleadge
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