mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-06 19:05:26 +02:00
lsp-lines: package option
This commit is contained in:
parent
22f6cd1ad9
commit
73dba1e6c2
1 changed files with 8 additions and 1 deletions
|
@ -8,6 +8,13 @@ in
|
|||
options = {
|
||||
plugins.lsp-lines = {
|
||||
enable = mkEnableOption "lsp_lines.nvim";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.lsp_lines-nvim;
|
||||
description = "Plugin to use for lsp_lines.nvim";
|
||||
};
|
||||
|
||||
currentLine = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
@ -27,7 +34,7 @@ in
|
|||
};
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [ pkgs.vimPlugins.lsp_lines-nvim ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
extraConfigLua = ''
|
||||
do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue