File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ A Neovim plugin that display prettier diagnostic messages. Display one line diag
18
18
19
19
## 🛠️ Setup
20
20
21
- - You need to set ` vim.opt.updatetime ` to trigger ` CursorEvent ` faster (ex: ` vim.opt.updatetime = 100 ` )
22
- - You also need to set ` vim.diagnostic.config({ virtual_text = false }) ` , to not have all diagnostics in the buffer displayed.
21
+ - You need to set ` vim.diagnostic.config({ virtual_text = false }) ` , to not have all diagnostics in the buffer displayed.
23
22
24
23
## 📥 Installation
25
24
@@ -55,7 +54,7 @@ require('tiny-inline-diagnostic').setup({
55
54
info = " DiagnosticInfo" ,
56
55
hint = " DiagnosticHint" ,
57
56
arrow = " NonText" ,
58
- background = " None " , -- Should be "None" or a hexadecimal color (#RRGGBB)
57
+ background = " CursorLine " , -- Can be a highlight or a hexadecimal color (#RRGGBB)
59
58
},
60
59
blend = {
61
60
factor = 0.27 ,
@@ -94,7 +93,5 @@ require('tiny-inline-diagnostic').setup({
94
93
95
94
## ❓ FAQ:
96
95
97
- - ** Q** : It takes a long time for the diagnostic to appear:
98
- - You need to set ` vim.opt.updatetime = 100 ` (or any number in ms). It will trigger the ` CursorHold ` event faster.
99
96
- ** Q** : All diagnostics are still displayed
100
97
- You need to set ` vim.diagnostic.config({ virtual_text = false }) ` to remove all the others diagnostics.
You can’t perform that action at this time.
0 commit comments