mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-02 21:34:33 +02:00
plugins/lsp/nixd: add "diagnostic" options
Used to suppress unwanted hints/warnings.
This commit is contained in:
parent
893b28779d
commit
3be9db71c2
1 changed files with 15 additions and 0 deletions
|
@ -4,6 +4,21 @@
|
|||
# - https://github.com/nix-community/nixd/blob/main/nixd/include/nixd/Controller/Configuration.h
|
||||
with lib;
|
||||
{
|
||||
diagnostic = {
|
||||
suppress = helpers.defaultNullOpts.mkListOf' {
|
||||
type = types.str;
|
||||
description = ''
|
||||
Disable specific LSP warnings, etc.
|
||||
A list of diagnostic _short names_ that should be suppressed.
|
||||
|
||||
See [the source](https://github.com/nix-community/nixd/blob/main/libnixf/include/nixf/Basic/DiagnosticKinds.inc)
|
||||
for available diagnostics.
|
||||
'';
|
||||
default = [ ];
|
||||
example = [ "sema-escaping-with" ];
|
||||
};
|
||||
};
|
||||
|
||||
formatting = {
|
||||
command = helpers.defaultNullOpts.mkListOf types.str [ "nixpkgs-fmt" ] ''
|
||||
Which command you would like to do formatting.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue