Skip to content

Commit b9bd2ca

Browse files
oriori1703hideyosh1
authored andcommitted
Fix treesitter indents
Thanks @JackHerby for the report fixes nvim-lua#1995
1 parent fb6af69 commit b9bd2ca

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

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

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

0 commit comments

Comments
 (0)