Skip to content

Commit

Permalink
fix: foldtext option changed locally instead of globally
Browse files Browse the repository at this point in the history
  • Loading branch information
heygent committed Jul 25, 2024
1 parent 0fa1e68 commit 85747d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/mkdnflow/foldtext.lua
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,6 @@ M.fold_text = function()
return left .. string.rep(mi, fill_count) .. right
end

vim.opt.foldtext = "v:lua.require('mkdnflow').foldtext.fold_text()"
vim.opt_local.foldtext = "v:lua.require('mkdnflow').foldtext.fold_text()"

return M

0 comments on commit 85747d3

Please sign in to comment.