nix-community.nixvim/plugins/by-name/lsp-lines/default.nix
Matt Sturgeon 1df98b6636
modules/diagnostic: rename diagnostic.config -> diagnostic.settings
Follow up to #3226, in line with the decisions made in #3254.
2025-04-30 18:31:17 +01:00

39 lines
772 B
Nix

{
lib,
helpers,
...
}:
with lib;
lib.nixvim.plugins.mkNeovimPlugin {
name = "lsp-lines";
moduleName = "lsp_lines";
packPathName = "lsp_lines.nvim";
package = "lsp_lines-nvim";
# This plugin has no settings; it is configured via vim.diagnostic.config
hasSettings = false;
maintainers = [ maintainers.MattSturgeon ];
# TODO: Introduced 2024-06-25, remove after 24.11
imports = [
(mkRenamedOptionModule
[
"plugins"
"lsp-lines"
"currentLine"
]
[
"diagnostic"
"settings"
"virtual_lines"
"only_current_line"
]
)
];
extraConfig = {
# Strongly recommended by the plugin, to avoid duplication.
diagnostic.settings.virtual_text = mkDefault false;
};
}