mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/diagnostic: rename diagnostics
-> diagnostic.config
Currently we represent `vim.diagnostic.config()` as a top-level `diagnostics` option. This means we have no clear namespace for (e.g.) `vim.diagnostic.<action>` keymap functions.
This commit is contained in:
parent
c3a42a7ac4
commit
6c73350557
6 changed files with 38 additions and 30 deletions
|
@ -24,7 +24,8 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
"currentLine"
|
||||
]
|
||||
[
|
||||
"diagnostics"
|
||||
"diagnostic"
|
||||
"config"
|
||||
"virtual_lines"
|
||||
"only_current_line"
|
||||
]
|
||||
|
@ -33,6 +34,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
extraConfig = {
|
||||
# Strongly recommended by the plugin, to avoid duplication.
|
||||
diagnostics.virtual_text = mkDefault false;
|
||||
diagnostic.config.virtual_text = mkDefault false;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue