home: vim: tree-sitter: use explicit buffer option
All checks were successful
ci/woodpecker/push/check Pipeline was successful
All checks were successful
ci/woodpecker/push/check Pipeline was successful
This commit is contained in:
parent
a371ab9406
commit
2c88edc511
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ local function treesitter_try_attach(buf, language)
|
||||||
-- Syntax highlighting
|
-- Syntax highlighting
|
||||||
vim.treesitter.start(buf, language)
|
vim.treesitter.start(buf, language)
|
||||||
-- Indentation
|
-- Indentation
|
||||||
vim.bo.indentexpr = "v:lua.require('nvim-treesitter').indentexpr()"
|
vim.bo[buf].indentexpr = "v:lua.require('nvim-treesitter').indentexpr()"
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue