aboutsummaryrefslogtreecommitdiff
path: root/ftplugin/markdown.lua
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2026-02-04 09:01:53 +0300
committerA Farzat <a@farzat.xyz>2026-02-04 09:01:53 +0300
commitf9122cd66cebc5384916f4620a387b29c2e816de (patch)
tree0cc8fd19f7178754bf792786262ba514ae258d23 /ftplugin/markdown.lua
parentd7f7c0586512424b17da314aba60c2875aaf860f (diff)
downloadnvim-master.tar.gz
nvim-master.zip
Fix error caused by upgrade of nvim-treesitterHEADmaster
Diffstat (limited to 'ftplugin/markdown.lua')
-rw-r--r--ftplugin/markdown.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftplugin/markdown.lua b/ftplugin/markdown.lua
new file mode 100644
index 0000000..82ac243
--- /dev/null
+++ b/ftplugin/markdown.lua
@@ -0,0 +1,4 @@
+require('nvim-treesitter').install{ 'markdown' }
+vim.treesitter.start()
+vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()'
+vim.wo[0][0].foldmethod = 'expr'