refactor(nvim): remove hack for orgmode ts

This commit is contained in:
Price Hiller 2024-02-07 21:20:36 -06:00
parent 6643b7c5e5
commit 2947acc600
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -2,11 +2,3 @@ vim.opt_local.shiftwidth = 2
vim.opt_local.modeline = true
vim.opt_local.wrap = false
vim.opt_local.conceallevel = 1
-- HACK: Correctly handle treesitter attachment. Without this folds and reformatting fall out of
-- sync and treesitter can fail to properly parse the buffer on content modifications.
if not vim.b.org_did_edit then
vim.b.org_did_edit = true
vim.defer_fn(vim.schedule_wrap(function()
vim.cmd.edit()
end), 10)
end