Skip to content

Commit fee72f2

Browse files
oriori1703jlonganecker
authored andcommitted
Fix treesitter indents
Thanks @JackHerby for the report fixes nvim-lua#1995
1 parent 42cb142 commit fee72f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ require('lazy').setup({
21042104

21052105
-- check if treesitter indentation is available for this language, and if so enable it
21062106
-- in case there is no indent query, the indentexpr will fallback to the vim's built in one
2107-
local has_indent_query = vim.treesitter.query.get(language, 'indent') ~= nil
2107+
local has_indent_query = vim.treesitter.query.get(language, 'indents') ~= nil
21082108

21092109
-- enables treesitter based indentation
21102110
if has_indent_query then vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" end

0 commit comments

Comments
 (0)