mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-07 19:35:01 +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 = {
|
options = {
|
||||||
plugins.lsp-lines = {
|
plugins.lsp-lines = {
|
||||||
enable = mkEnableOption "lsp_lines.nvim";
|
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 {
|
currentLine = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -27,7 +34,7 @@ in
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = [ pkgs.vimPlugins.lsp_lines-nvim ];
|
extraPlugins = [ cfg.package ];
|
||||||
|
|
||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
do
|
do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue