mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-16 15:32:48 +01:00
34 lines
865 B
Nix
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.
|
|
'';
|
|
};
|
|
};
|
|
}
|