Skip to content

Commit

Permalink
fix: update on DiagnosticChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 committed Sep 29, 2024
1 parent 3d5390c commit f0a6019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/treesitter-context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function M.enable()

attached[cbuf] = true

autocmd({ 'WinScrolled', 'BufEnter', 'WinEnter', 'VimResized' }, update)
autocmd({ 'WinScrolled', 'BufEnter', 'WinEnter', 'VimResized', 'DiagnosticChanged' }, update)

autocmd('BufReadPost', function(args)
attached[args.buf] = nil
Expand Down

0 comments on commit f0a6019

Please sign in to comment.