mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
feat: support when buf is not current
This commit is contained in:
parent
e71dfc1e7a
commit
b6beb5e7d0
1 changed files with 2 additions and 2 deletions
|
|
@ -127,8 +127,8 @@ local function enable_mod_conf_autocmd(mod)
|
||||||
|
|
||||||
api.nvim_create_autocmd("FileType", {
|
api.nvim_create_autocmd("FileType", {
|
||||||
group = api.nvim_create_augroup("NvimTreesitter-" .. mod, {}),
|
group = api.nvim_create_augroup("NvimTreesitter-" .. mod, {}),
|
||||||
callback = function()
|
callback = function(args)
|
||||||
require("nvim-treesitter.configs").reattach_module(mod)
|
require("nvim-treesitter.configs").reattach_module(mod, args.buf)
|
||||||
end,
|
end,
|
||||||
desc = "Reattach module",
|
desc = "Reattach module",
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue