⚙️ config(nvim): added autoindent treesitter integration
This commit is contained in:
parent
7011f0ec12
commit
356a3d2894
1 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,11 @@
|
||||||
return {
|
return {
|
||||||
"vidocqh/auto-indent.nvim",
|
"vidocqh/auto-indent.nvim",
|
||||||
event = "BufReadPost",
|
event = "BufReadPost",
|
||||||
opts = {},
|
opts = {
|
||||||
|
---@param lnum: number
|
||||||
|
---@return number
|
||||||
|
indentexpr = function(lnum)
|
||||||
|
return require("nvim-treesitter.indent").get_indent(lnum)
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue