⚙️ config(nvim): added autoindent treesitter integration

This commit is contained in:
Sergio Laín 2023-11-28 13:19:38 +01:00
parent 7011f0ec12
commit 356a3d2894
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -1,5 +1,11 @@
return {
"vidocqh/auto-indent.nvim",
event = "BufReadPost",
opts = {},
opts = {
---@param lnum: number
---@return number
indentexpr = function(lnum)
return require("nvim-treesitter.indent").get_indent(lnum)
end,
},
}