nvimdev / guard.nvim

async fast minimalist plugin make format easy in neovim
MIT License
440 stars 23 forks source link

Diagnostics are not being cleared after formatting (rubocop) #22

Closed otavioschwanck closed 1 year ago

otavioschwanck commented 1 year ago

image

The format on save is working now, but the diagnostics are not being cleared.

glepnir commented 1 year ago

does au TextChanged and InsertLeave have guard au ?

otavioschwanck commented 1 year ago

does au TextChanged and InsertLeave have guard au ?

image

InsertLeave

glepnir commented 1 year ago

okay the autocmd event create successful .so I wonder why not trigger there. it should clean the virtual text.

https://github.com/nvimdev/guard.nvim/blob/1154a72a7094d09cae01e97de005459b6fe03d57/lua/guard/lint.lua#L16

otavioschwanck commented 1 year ago

Fixed in last commit!