jakewvincent / mkdnflow.nvim

Fluent navigation and management of markdown notebooks
GNU General Public License v3.0
684 stars 41 forks source link

Bug: There is no problem with pressing enter in the title to open the folding, but pressing enter to fold is incorrect #254

Open xinmodao opened 3 weeks ago

xinmodao commented 3 weeks ago

Bug description There is no problem with pressing enter in the title to open the folding, but pressing enter to fold is incorrect

Error output and/or screenshots Error executing Lua callback: vim/_editor.lua:0: nvim_exec2(): Vim(fold):E350: Cannot create fold with current 'foldmethod' stack traceback: [C]: in function 'nvim_exec2' vim/_editor.lua: in function 'cmd' ...al/share/nevim/lazy/mkdnflow.nvim/lua/mkdnflow/folds.lua:91: in function 'foldSection' ...share/nevim/lazy/mkdnflow.nvim/lua/mkdnflow/wrappers.lua:87: in function 'followOrCreateLinksOrToggleFolds' ...share/nevim/lazy/mkdnflow.nvim/lua/mkdnflow/wrappers.lua:101: in function 'multiFuncEnter' ...local/share/nevim/lazy/mkdnflow.nvim/plugin/mkdnflow.lua:35: in function <...local/share/nevim/lazy/mkdnflow.nvim/plugin/mkdnflow.lua:31>

Context (Please complete the following information):

Press enter to fold to open and close the title, do I need to set anything else? MkdnFoldSection Same error