Skip to content

Commit d96b147

Browse files
oriori1703tiagobnoronha
authored andcommitted
Fix treesitter indents
Thanks @JackHerby for the report fixes nvim-lua#1995
1 parent f881830 commit d96b147

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
@@ -1190,7 +1190,7 @@ require('lazy').setup({
11901190

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

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

0 commit comments

Comments
 (0)