Skip to content

Commit bd8189a

Browse files
committed
Merge upstream: Fix treesitter indents
2 parents 3174e05 + f27810d commit bd8189a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/kickstart/plugins/treesitter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ return {
2727

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

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

0 commit comments

Comments
 (0)