mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 12:30:01 -04:00
fixed #630
This commit is contained in:
parent
d739409a16
commit
839f621955
1 changed files with 1 additions and 0 deletions
|
|
@ -114,6 +114,7 @@ local indent_funcs = {}
|
|||
function M.attach(bufnr)
|
||||
indent_funcs[bufnr] = vim.bo.indentexpr
|
||||
vim.bo.indentexpr = 'nvim_treesitter#indent()'
|
||||
vim.api.nvim_command("au Filetype "..vim.bo.filetype.." setlocal indentexpr=nvim_treesitter#indent()")
|
||||
end
|
||||
|
||||
function M.detach(bufnr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue