1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00
nixvim/plugins/by-name/lsp-lines/default.nix
Matt Sturgeon fe059cd395 flake: add nixf-diagnose to treefmt config
Checks nixd's diagnostic lints using libnixf.
2025-10-01 00:42:40 +00:00

35 lines
842 B
Nix

{ lib, ... }:
with lib;
lib.nixvim.plugins.mkNeovimPlugin {
name = "lsp-lines";
moduleName = "lsp_lines";
package = "lsp_lines-nvim";
description = "A simple neovim plugin that renders diagnostics using virtual lines on top of the real line of code.";
# 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;
};
}