1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-16 15:32:48 +01:00
nixvim/plugins/by-name/lspsaga/default.nix
saygo-png c4b27080a6 treewide: infer packPathName menial work
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-09-27 23:49:59 +00:00

34 lines
865 B
Nix

{
lib,
...
}:
lib.nixvim.plugins.mkNeovimPlugin {
name = "lspsaga";
package = "lspsaga-nvim";
maintainers = [ lib.maintainers.saygo-png ];
description = "Improve the Neovim lsp experience.";
inherit (import ./deprecations.nix lib)
optionsRenamedToSettings
deprecateExtraOptions
imports
;
settingsExample = {
ui.border = "single";
symbol_in_winbar.enable = true;
implement.enable = true;
lightbulb.enable = false;
};
extraConfig = cfg: {
warnings = lib.nixvim.mkWarnings "plugins.lspsaga" {
# https://nvimdev.github.io/lspsaga/implement/#default-options
when = (cfg.settings.implement.enable or true) && !(cfg.settings.symbol_in_winbar.enable or true);
message = ''
You have enabled the `implement` module but it requires `symbol_in_winbar` to be enabled.
'';
};
};
}