aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:53:22 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:53:22 +0100
commit47fa53d68e15a864cbdc83a798835273fdf09d3d (patch)
tree2c0f7de493fdccc5cb6fb313bb10fa282d4e3c06
parent5d0237fb209888f35fdf273b2f2401e254e22ac3 (diff)
downloaddotfiles-47fa53d68e15a864cbdc83a798835273fdf09d3d.tar.gz
dotfiles-47fa53d68e15a864cbdc83a798835273fdf09d3d.tar.bz2
dotfiles-47fa53d68e15a864cbdc83a798835273fdf09d3d.zip
fix: use native treesitter indentexpr instead of plugin API
Neovim 0.12 provides vim.treesitter.indentexpr() natively, replacing the nvim-treesitter plugin's indentexpr function.
-rw-r--r--home/.config/nvim/lua/config/autocmds.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/.config/nvim/lua/config/autocmds.lua b/home/.config/nvim/lua/config/autocmds.lua
index 3f3bf24..50337f6 100644
--- a/home/.config/nvim/lua/config/autocmds.lua
+++ b/home/.config/nvim/lua/config/autocmds.lua
@@ -125,7 +125,7 @@ autocmd("FileType", {
callback = function()
if pcall(vim.treesitter.start) then
vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()"
- vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
+ vim.bo.indentexpr = "v:lua.vim.treesitter.indentexpr()"
end
end,
})