mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-14 06:38:44 +02:00
lspkind: package option
This commit is contained in:
parent
01ab0ba352
commit
39261bff6b
1 changed files with 8 additions and 1 deletions
|
@ -7,6 +7,13 @@ in
|
|||
{
|
||||
options.plugins.lspkind = {
|
||||
enable = mkEnableOption "lspkind.nvim";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.lspkind-nvim;
|
||||
description = "Plugin to use for lspkind.nvim";
|
||||
};
|
||||
|
||||
mode = mkOption {
|
||||
type = with types; nullOr (enum [ "text" "text_symbol" "symbol_text" "symbol" ]);
|
||||
default = null;
|
||||
|
@ -72,7 +79,7 @@ in
|
|||
} else { });
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [ pkgs.vimPlugins.lspkind-nvim ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
extraConfigLua = optionalString (!doCmp) ''
|
||||
require('lspkind').init(${helpers.toLuaObject options})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue