nix-community.nixvim/plugins/lsp/lsp-lines.nix
Matt Sturgeon 1fd4b6c739
plugins: migrate defaultPackage -> package
Migrate all users of `mkVimPlugin` and `mkNeovimPlugin` to use the new
`package` argument instead of the old `defaultPackage` argument.
2024-09-04 03:29:34 +01:00

38 lines
751 B
Nix

{
lib,
helpers,
...
}:
with lib;
helpers.neovim-plugin.mkNeovimPlugin {
name = "lsp-lines";
luaName = "lsp_lines";
originalName = "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"
]
[
"diagnostics"
"virtual_lines"
"only_current_line"
]
)
];
extraConfig = cfg: {
# Strongly recommended by the plugin, to avoid duplication.
diagnostics.virtual_text = mkDefault false;
};
}