mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
async buf_attach
This commit is contained in:
parent
e0b49a9a18
commit
ec5f1402e2
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ function M.memoize_by_buf_tick(fn)
|
|||
cache[bufnr] = {}
|
||||
api.nvim_buf_attach(bufnr, false,
|
||||
{
|
||||
on_changedtick = function() cache[bufnr] = fn(bufnr) end,
|
||||
on_changedtick = utils.async(function() cache[bufnr] = fn(bufnr) end),
|
||||
on_detach = function() cache[bufnr] = nil end
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue