aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-01-19 17:22:21 +0100
committerThomas Schmucker <ts@its1.de>2026-01-19 17:22:21 +0100
commit2f573c93f914ad7b4c8a11c8ed800c30602ae2e2 (patch)
tree354960646b955388bf719de44efecf9d934c6330 /nvim
parent74d64eb80b81ef2fa8aeb1abbd36af2e6fc86819 (diff)
downloaddotfiles-2f573c93f914ad7b4c8a11c8ed800c30602ae2e2.tar.gz
dotfiles-2f573c93f914ad7b4c8a11c8ed800c30602ae2e2.tar.bz2
dotfiles-2f573c93f914ad7b4c8a11c8ed800c30602ae2e2.zip
neovim: Aktiviere Code-Folding auch für Python
Diffstat (limited to 'nvim')
-rw-r--r--nvim/lua/config/autocmds.lua2
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
2vim.api.nvim_create_autocmd("FileType", { 2vim.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()"