diff options
| author | A Farzat <a@farzat.xyz> | 2026-06-16 16:57:30 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2026-06-16 17:00:46 +0300 |
| commit | d30a3da69f9121ab2cbc472deee9c38f9bd33d0b (patch) | |
| tree | 86f345de66871d23cd55c60be7618506b3a56125 | |
| parent | e21e4961a8b4a00bfaa9abf4a4df30bf4ebba1e7 (diff) | |
| download | nvim-master.tar.gz nvim-master.zip | |
| -rw-r--r-- | ftplugin/python.lua | 4 |
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' |
