From 73dba1e6c2aedde73e443b2505ca9c27724464bc Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Tue, 17 Jan 2023 22:17:51 +0100 Subject: [PATCH] lsp-lines: package option --- plugins/nvim-lsp/lsp-lines.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/nvim-lsp/lsp-lines.nix b/plugins/nvim-lsp/lsp-lines.nix index e415b469..df06930d 100644 --- a/plugins/nvim-lsp/lsp-lines.nix +++ b/plugins/nvim-lsp/lsp-lines.nix @@ -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