aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2026-06-16 16:57:30 +0300
committerA Farzat <a@farzat.xyz>2026-06-16 17:00:46 +0300
commitd30a3da69f9121ab2cbc472deee9c38f9bd33d0b (patch)
tree86f345de66871d23cd55c60be7618506b3a56125
parente21e4961a8b4a00bfaa9abf4a4df30bf4ebba1e7 (diff)
downloadnvim-master.tar.gz
nvim-master.zip
Add python treesitter and fold settingsHEADmaster
-rw-r--r--ftplugin/python.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftplugin/python.lua b/ftplugin/python.lua
new file mode 100644
index 0000000..54bf7ae
--- /dev/null
+++ b/ftplugin/python.lua
@@ -0,0 +1,4 @@
+require('nvim-treesitter').install{ 'python' }
+vim.treesitter.start()
+vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()'
+vim.wo[0][0].foldmethod = 'expr'