Skip to content

Commit

Permalink
fix: workaround to show errors after entering buf
Browse files Browse the repository at this point in the history
  • Loading branch information
ravibrock committed Jun 3, 2024
1 parent 6835eef commit b31ddb6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ I recommend using [Lazy.nvim](https://github.com/folke/lazy.nvim):
Pass any of the following options to `require("spellwarn").setup()`:
```lua
{
event = { "TextChanged", "TextChangedI", "TextChangedP", "TextChangedT" }, -- event(s) to refresh diagnostics on
event = { -- event(s) to refresh diagnostics on
"CursorHold",
"TextChanged",
"TextChangedI",
"TextChangedP",
"TextChangedT",
},
ft_config = { -- filetypes to override ft_default for
alpha = false,
help = false,
Expand Down
8 changes: 7 additions & 1 deletion lua/spellwarn/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
local M = {}
local defaults = {
-- FIX: Trouble.nvim jump to diagnostic is slightly buggy with `TextChanged` event; no good workaround though AFAICT
event = { "TextChanged", "TextChangedI", "TextChangedP", "TextChangedT" }, -- event(s) to refresh diagnostics on
event = { -- event(s) to refresh diagnostics on
"CursorHold",
"TextChanged",
"TextChangedI",
"TextChangedP",
"TextChangedT",
},
ft_config = { -- filetypes to override ft_default for
alpha = false,
help = false,
Expand Down

0 comments on commit b31ddb6

Please sign in to comment.