Skip to content

Commit

Permalink
feat: add diagnostic.displayByVimDiagnostic
Browse files Browse the repository at this point in the history
set coc.nvim's diagnostics to nvim's `vim.diagnostic`, disabled by default.

This should be useful for nvim's diagnostic-related plugins that request diagnostic from `vim.diagnostic`
  • Loading branch information
fannheyward committed Jan 8, 2025
1 parent a6e54ae commit 2a5c5cd
Show file tree
Hide file tree
Showing 8 changed files with 340 additions and 244 deletions.
6 changes: 6 additions & 0 deletions data/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,12 @@
"description": "Use Ale, coc-diagnostics-shim.nvim, or other provider to display diagnostics in vim. This setting will disable diagnostic display using coc's handler. A restart required on change.",
"default": false
},
"diagnostic.displayByVimDiagnostic": {
"type": "boolean",
"scope": "language-overridable",
"description": "Display diagnostics with nvim's `vim.diagnostic`. This setting will disable diagnostic display using coc's handler. A restart required on change. Neovim only.",
"default": false
},
"diagnostic.enable": {
"type": "boolean",
"scope": "language-overridable",
Expand Down
4 changes: 4 additions & 0 deletions doc/coc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,10 @@ b:coc_diagnostic_info *b:coc_diagnostic_info*

can be used to customize statusline. See |coc-status|.

b:coc_diagnostic_map *b:coc_diagnostic_map*

Diagnostics of current buffer, the format is same as *diagnostic-structure*

b:coc_current_function *b:coc_current_function*

Function string that current cursor in.
Expand Down
Loading

0 comments on commit 2a5c5cd

Please sign in to comment.