mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-01 00:24:59 +02:00
helpers: add mkPackageOption + refactoring (#144)
This commit is contained in:
parent
b9a5c9c2b5
commit
b724085447
58 changed files with 94 additions and 258 deletions
|
@ -2,18 +2,14 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.plugins.lsp-lines;
|
||||
helpers = import ../helpers.nix { lib = lib; };
|
||||
helpers = import ../helpers.nix { inherit lib; };
|
||||
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";
|
||||
};
|
||||
package = helpers.mkPackageOption "lsp_lines.nvim" pkgs.vimPlugins.lsp_lines-nvim;
|
||||
|
||||
currentLine = mkOption {
|
||||
type = types.bool;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue