Add treesitter keymap to reset foldmethod

Seems like treesitter folds get into a confused situation, potentially a
race condition, which is fixed by setting `foldmethod=expr`. This
mapping makes that faster.
This commit is contained in:
2026-01-15 16:40:06 +00:00
parent f59a288d59
commit 31a03cac7b

View File

@@ -98,5 +98,10 @@ return {
}, },
}, },
}) })
-- Keymaps
vim.keymap.set('n', '<leader>fm', function()
vim.o.foldmethod = 'expr'
end, {})
end end
} }