From d30a3da69f9121ab2cbc472deee9c38f9bd33d0b Mon Sep 17 00:00:00 2001 From: A Farzat Date: Tue, 16 Jun 2026 16:57:30 +0300 Subject: Add python treesitter and fold settings --- ftplugin/python.lua | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ftplugin/python.lua 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' -- cgit v1.3.1