We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39ee06f commit a715ad7Copy full SHA for a715ad7
lua/opencode/context.lua
@@ -497,8 +497,10 @@ function M.setup()
497
M.load()
498
end)
499
500
+ local augroup = vim.api.nvim_create_augroup('OpenCodeContext', { clear = true })
501
vim.api.nvim_create_autocmd('BufWritePost', {
502
pattern = '*',
503
+ group = augroup,
504
callback = function(args)
505
local buf = args.buf
506
local curr_buf = state.current_code_buf or vim.api.nvim_get_current_buf()
@@ -510,6 +512,7 @@ function M.setup()
510
512
511
513
vim.api.nvim_create_autocmd('DiagnosticChanged', {
514
515
516
517
518
0 commit comments