diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-01-19 17:22:21 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-01-19 17:22:21 +0100 |
| commit | 2f573c93f914ad7b4c8a11c8ed800c30602ae2e2 (patch) | |
| tree | 354960646b955388bf719de44efecf9d934c6330 /nvim/lua/config | |
| parent | 74d64eb80b81ef2fa8aeb1abbd36af2e6fc86819 (diff) | |
| download | dotfiles-2f573c93f914ad7b4c8a11c8ed800c30602ae2e2.tar.gz dotfiles-2f573c93f914ad7b4c8a11c8ed800c30602ae2e2.tar.bz2 dotfiles-2f573c93f914ad7b4c8a11c8ed800c30602ae2e2.zip | |
neovim: Aktiviere Code-Folding auch für Python
Diffstat (limited to 'nvim/lua/config')
| -rw-r--r-- | nvim/lua/config/autocmds.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nvim/lua/config/autocmds.lua b/nvim/lua/config/autocmds.lua index 647875d..6be82dd 100644 --- a/nvim/lua/config/autocmds.lua +++ b/nvim/lua/config/autocmds.lua | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/doc/nvim-treesitter.txt | 1 | -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/doc/nvim-treesitter.txt |
| 2 | vim.api.nvim_create_autocmd("FileType", { | 2 | vim.api.nvim_create_autocmd("FileType", { |
| 3 | pattern = { "c", "cpp", "lua", "typescript" }, | 3 | pattern = { "c", "cpp", "lua", "python", "typescript" }, |
| 4 | callback = function() | 4 | callback = function() |
| 5 | vim.treesitter.start() | 5 | vim.treesitter.start() |
| 6 | vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()" | 6 | vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()" |
