2022-08-28 01:33:43 +01:00
|
|
|
{
|
2023-02-20 11:42:13 +01:00
|
|
|
lib,
|
2023-11-06 15:04:08 +01:00
|
|
|
helpers,
|
2023-02-20 11:42:13 +01:00
|
|
|
config,
|
2023-11-06 15:04:08 +01:00
|
|
|
pkgs,
|
2023-02-20 11:42:13 +01:00
|
|
|
...
|
|
|
|
}:
|
2024-05-05 19:39:35 +02:00
|
|
|
with lib;
|
2024-06-21 11:59:22 +01:00
|
|
|
helpers.neovim-plugin.mkNeovimPlugin config {
|
|
|
|
name = "lsp-lines";
|
|
|
|
luaName = "lsp_lines";
|
|
|
|
originalName = "lsp_lines.nvim";
|
|
|
|
defaultPackage = pkgs.vimPlugins.lsp_lines-nvim;
|
2023-01-19 10:45:15 +00:00
|
|
|
|
2024-06-21 11:59:22 +01:00
|
|
|
# This plugin has no settings; it is configured via vim.diagnostic.config
|
|
|
|
hasSettings = false;
|
2022-08-28 01:33:43 +01:00
|
|
|
|
2024-06-21 11:59:22 +01:00
|
|
|
maintainers = [ maintainers.MattSturgeon ];
|
2022-08-28 01:33:43 +01:00
|
|
|
|
2024-06-21 11:59:22 +01:00
|
|
|
# TODO: Introduced 2024-06-25, remove after 24.11
|
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[
|
|
|
|
"plugins"
|
|
|
|
"lsp-lines"
|
|
|
|
"currentLine"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
"diagnostics"
|
|
|
|
"virtual_lines"
|
|
|
|
"only_current_line"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
];
|
2022-08-28 01:33:43 +01:00
|
|
|
|
2024-06-21 11:59:22 +01:00
|
|
|
extraConfig = cfg: {
|
|
|
|
# Strongly recommended by the plugin, to avoid duplication.
|
|
|
|
diagnostics.virtual_text = mkDefault false;
|
|
|
|
};
|
2022-08-28 01:33:43 +01:00
|
|
|
}
|