mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
misc: refactor imports, prefer adding helpers
to args rather than importing it
This commit is contained in:
parent
541b694873
commit
b6724702b4
160 changed files with 697 additions and 736 deletions
|
@ -1,11 +1,10 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
helpers = import ../lib/helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
autoGroupOption = types.submodule {
|
autoGroupOption = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
clear = mkOption {
|
clear = mkOption {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
helpers = import ../lib/helpers.nix {inherit lib;};
|
|
||||||
commandAttributes = types.submodule {
|
commandAttributes = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
command = mkOption {
|
command = mkOption {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
helpers = import ../lib/helpers.nix args;
|
|
||||||
filetypeDefinition = helpers.mkNullOrOption (types.attrsOf (
|
filetypeDefinition = helpers.mkNullOrOption (types.attrsOf (
|
||||||
types.oneOf [
|
types.oneOf [
|
||||||
# Raw filetype
|
# Raw filetype
|
||||||
|
|
|
@ -1,58 +1,57 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
helpers = import ../lib/helpers.nix {inherit lib;};
|
with lib; {
|
||||||
in
|
options = {
|
||||||
with lib; {
|
highlight = mkOption {
|
||||||
options = {
|
type = types.attrsOf helpers.highlightType;
|
||||||
highlight = mkOption {
|
default = {};
|
||||||
type = types.attrsOf helpers.highlightType;
|
description = "Define highlight groups";
|
||||||
default = {};
|
example = ''
|
||||||
description = "Define highlight groups";
|
highlight = {
|
||||||
example = ''
|
Comment.fg = '#ff0000';
|
||||||
highlight = {
|
};
|
||||||
Comment.fg = '#ff0000';
|
'';
|
||||||
};
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
match = mkOption {
|
|
||||||
type = types.attrsOf types.str;
|
|
||||||
default = {};
|
|
||||||
description = "Define match groups";
|
|
||||||
example = ''
|
|
||||||
match = {
|
|
||||||
ExtraWhitespace = '\\s\\+$';
|
|
||||||
};
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (config.highlight != {} || config.match != {}) {
|
match = mkOption {
|
||||||
extraConfigLuaPost =
|
type = types.attrsOf types.str;
|
||||||
(optionalString (config.highlight != {}) ''
|
default = {};
|
||||||
-- Highlight groups {{
|
description = "Define match groups";
|
||||||
do
|
example = ''
|
||||||
local highlights = ${helpers.toLuaObject config.highlight}
|
match = {
|
||||||
|
ExtraWhitespace = '\\s\\+$';
|
||||||
|
};
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
for k,v in pairs(highlights) do
|
config = mkIf (config.highlight != {} || config.match != {}) {
|
||||||
vim.api.nvim_set_hl(0, k, v)
|
extraConfigLuaPost =
|
||||||
|
(optionalString (config.highlight != {}) ''
|
||||||
|
-- Highlight groups {{
|
||||||
|
do
|
||||||
|
local highlights = ${helpers.toLuaObject config.highlight}
|
||||||
|
|
||||||
|
for k,v in pairs(highlights) do
|
||||||
|
vim.api.nvim_set_hl(0, k, v)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
-- }}
|
||||||
|
'')
|
||||||
|
+ (optionalString (config.match != {}) ''
|
||||||
|
-- Match groups {{
|
||||||
|
do
|
||||||
|
local match = ${helpers.toLuaObject config.match}
|
||||||
|
|
||||||
|
for k,v in pairs(match) do
|
||||||
|
vim.fn.matchadd(k, v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- }}
|
-- }}
|
||||||
'')
|
'');
|
||||||
+ (optionalString (config.match != {}) ''
|
};
|
||||||
-- Match groups {{
|
}
|
||||||
do
|
|
||||||
local match = ${helpers.toLuaObject config.match}
|
|
||||||
|
|
||||||
for k,v in pairs(match) do
|
|
||||||
vim.fn.matchadd(k, v)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
-- }}
|
|
||||||
'');
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; {
|
||||||
helpers = import ../lib/helpers.nix {inherit lib;};
|
|
||||||
in {
|
|
||||||
options = {
|
options = {
|
||||||
maps =
|
maps =
|
||||||
mapAttrs
|
mapAttrs
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; {
|
||||||
helpers = import ../lib/helpers.nix {inherit lib;};
|
|
||||||
in {
|
|
||||||
options = {
|
options = {
|
||||||
options = mkOption {
|
options = mkOption {
|
||||||
type = types.attrsOf types.anything;
|
type = types.attrsOf types.anything;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.barbar;
|
cfg = config.plugins.barbar;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
bufferOptions = {
|
bufferOptions = {
|
||||||
bufferIndex = helpers.mkNullOrOption types.bool ''
|
bufferIndex = helpers.mkNullOrOption types.bool ''
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.barbecue;
|
cfg = config.plugins.barbecue;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
mkListStr = helpers.defaultNullOpts.mkNullable (types.listOf types.str);
|
mkListStr = helpers.defaultNullOpts.mkNullable (types.listOf types.str);
|
||||||
in {
|
in {
|
||||||
options.plugins.barbecue =
|
options.plugins.barbecue =
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.bufferline;
|
cfg = config.plugins.bufferline;
|
||||||
helpers = import ../helpers.nix args;
|
|
||||||
|
|
||||||
highlightOption = {
|
highlightOption = {
|
||||||
fg = helpers.mkNullOrOption types.str "foreground color";
|
fg = helpers.mkNullOrOption types.str "foreground color";
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.navic;
|
cfg = config.plugins.navic;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
mkListStr = helpers.defaultNullOpts.mkNullable (types.listOf types.str);
|
|
||||||
in {
|
in {
|
||||||
options.plugins.navic =
|
options.plugins.navic =
|
||||||
helpers.extraOptionsOptions
|
helpers.extraOptionsOptions
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.ayu;
|
cfg = config.colorschemes.ayu;
|
||||||
helpers = import ../helpers.nix args;
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
colorschemes.ayu =
|
colorschemes.ayu =
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.base16;
|
cfg = config.colorschemes.base16;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
themes = import ./base16-list.nix;
|
themes = import ./base16-list.nix;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.catppuccin;
|
cfg = config.colorschemes.catppuccin;
|
||||||
helpers = import ../helpers.nix args;
|
|
||||||
|
|
||||||
flavours = [
|
flavours = [
|
||||||
"latte"
|
"latte"
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.dracula;
|
cfg = config.colorschemes.dracula;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
colorschemes.dracula = {
|
colorschemes.dracula = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.gruvbox;
|
cfg = config.colorschemes.gruvbox;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
colors = types.enum ["bg" "red" "green" "yellow" "blue" "purple" "aqua" "gray" "fg" "bg0_h" "bg0" "bg1" "bg2" "bg3" "bg4" "gray" "orange" "bg0_s" "fg0" "fg1" "fg2" "fg3" "fg4"];
|
colors = types.enum ["bg" "red" "green" "yellow" "blue" "purple" "aqua" "gray" "fg" "bg0_h" "bg0" "bg1" "bg2" "bg3" "bg4" "gray" "orange" "bg0_s" "fg0" "fg1" "fg2" "fg3" "fg4"];
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.kanagawa;
|
cfg = config.colorschemes.kanagawa;
|
||||||
helpers = import ../helpers.nix args;
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
colorschemes.kanagawa =
|
colorschemes.kanagawa =
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkEnableOption mkDefault mkIf;
|
inherit (lib) mkEnableOption mkDefault mkIf;
|
||||||
inherit (import ../helpers.nix {inherit lib;}) mkPackageOption;
|
|
||||||
cfg = config.colorschemes.melange;
|
cfg = config.colorschemes.melange;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
colorschemes.melange = {
|
colorschemes.melange = {
|
||||||
enable = mkEnableOption "Melange colorscheme";
|
enable = mkEnableOption "Melange colorscheme";
|
||||||
package = mkPackageOption "melange.nvim" pkgs.vimPlugins.melange-nvim;
|
package = helpers.mkPackageOption "melange.nvim" pkgs.vimPlugins.melange-nvim;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.nord;
|
cfg = config.colorschemes.nord;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
colorschemes.nord = {
|
colorschemes.nord = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.one;
|
cfg = config.colorschemes.one;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
colorschemes.one = {
|
colorschemes.one = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.onedark;
|
cfg = config.colorschemes.onedark;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
colorschemes.onedark = {
|
colorschemes.onedark = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.oxocarbon;
|
cfg = config.colorschemes.oxocarbon;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
colorschemes.oxocarbon = {
|
colorschemes.oxocarbon = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.poimandres;
|
cfg = config.colorschemes.poimandres;
|
||||||
helpers = import ../helpers.nix args;
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
colorschemes.poimandres =
|
colorschemes.poimandres =
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.rose-pine;
|
cfg = config.colorschemes.rose-pine;
|
||||||
helpers = import ../helpers.nix args;
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
colorschemes.rose-pine = {
|
colorschemes.rose-pine = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.colorschemes.tokyonight;
|
cfg = config.colorschemes.tokyonight;
|
||||||
helpers = import ../helpers.nix args;
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
colorschemes.tokyonight = {
|
colorschemes.tokyonight = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.copilot-lua;
|
cfg = config.plugins.copilot-lua;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
plugins.copilot-lua = let
|
plugins.copilot-lua = let
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.copilot-vim;
|
cfg = config.plugins.copilot-vim;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(lib.mkRenamedOptionModule ["plugins" "copilot"] ["plugins" "copilot-vim"])
|
(lib.mkRenamedOptionModule ["plugins" "copilot"] ["plugins" "copilot-vim"])
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.coq-thirdparty;
|
cfg = config.plugins.coq-thirdparty;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.coq-thirdparty = {
|
options.plugins.coq-thirdparty = {
|
||||||
enable = mkEnableOption "coq-thirdparty";
|
enable = mkEnableOption "coq-thirdparty";
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.coq-nvim;
|
cfg = config.plugins.coq-nvim;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
plugins.coq-nvim = {
|
plugins.coq-nvim = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.lspkind;
|
cfg = config.plugins.lspkind;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.lspkind =
|
options.plugins.lspkind =
|
||||||
helpers.extraOptionsOptions
|
helpers.extraOptionsOptions
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ attrs: let
|
}: let
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
helpers = import ../../helpers.nix {inherit lib;};
|
||||||
in
|
in
|
||||||
with helpers;
|
with helpers;
|
||||||
|
@ -13,7 +14,7 @@ in
|
||||||
useDefaultPackage ? true,
|
useDefaultPackage ? true,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
mkPlugin attrs {
|
mkPlugin {inherit lib config pkgs;} {
|
||||||
inherit name;
|
inherit name;
|
||||||
extraPlugins = extraPlugins ++ (lists.optional useDefaultPackage pkgs.vimPlugins.${name});
|
extraPlugins = extraPlugins ++ (lists.optional useDefaultPackage pkgs.vimPlugins.${name});
|
||||||
description = "Enable ${name}";
|
description = "Enable ${name}";
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
} @ args:
|
} @ args:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.nvim-cmp;
|
cfg = config.plugins.nvim-cmp;
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
cmpLib = import ./cmp-helpers.nix args;
|
cmpLib = import ./cmp-helpers.nix args;
|
||||||
|
|
||||||
snippetEngines = {
|
snippetEngines = {
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.cmp-tabnine;
|
cfg = config.plugins.cmp-tabnine;
|
||||||
helpers = import ../../../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.cmp-tabnine = helpers.extraOptionsOptions;
|
options.plugins.cmp-tabnine = helpers.extraOptionsOptions;
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
copilot-lua-cfg = config.plugins.copilot-lua;
|
copilot-lua-cfg = config.plugins.copilot-lua;
|
||||||
cfg = config.plugins.copilot-cmp;
|
cfg = config.plugins.copilot-cmp;
|
||||||
helpers = import ../../../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.copilot-cmp =
|
options.plugins.copilot-cmp =
|
||||||
helpers.extraOptionsOptions
|
helpers.extraOptionsOptions
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.crates-nvim;
|
cfg = config.plugins.crates-nvim;
|
||||||
helpers = import ../../../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.crates-nvim = helpers.extraOptionsOptions;
|
options.plugins.crates-nvim = helpers.extraOptionsOptions;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ attrs:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cmpLib = import ../cmp-helpers.nix attrs;
|
cmpLib = import ../cmp-helpers.nix {inherit lib config pkgs;};
|
||||||
cmpSourcesPluginNames = lib.attrValues cmpLib.pluginAndSourceNames;
|
cmpSourcesPluginNames = attrValues cmpLib.pluginAndSourceNames;
|
||||||
pluginModules = lists.map (name: cmpLib.mkCmpSourcePlugin {inherit name;}) cmpSourcesPluginNames;
|
pluginModules = lists.map (name: cmpLib.mkCmpSourcePlugin {inherit name;}) cmpSourcesPluginNames;
|
||||||
in {
|
in {
|
||||||
# For extra cmp plugins
|
# For extra cmp plugins
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.dap.extensions.dap-go;
|
cfg = config.plugins.dap.extensions.dap-go;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
dapHelpers = import ./dapHelpers.nix {inherit lib;};
|
dapHelpers = import ./dapHelpers.nix {inherit lib;};
|
||||||
in {
|
in {
|
||||||
options.plugins.dap.extensions.dap-go = {
|
options.plugins.dap.extensions.dap-go = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.dap.extensions.dap-python;
|
cfg = config.plugins.dap.extensions.dap-python;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
dapHelpers = import ./dapHelpers.nix {inherit lib;};
|
dapHelpers = import ./dapHelpers.nix {inherit lib;};
|
||||||
in {
|
in {
|
||||||
options.plugins.dap.extensions.dap-python = {
|
options.plugins.dap.extensions.dap-python = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.dap.extensions.dap-ui;
|
cfg = config.plugins.dap.extensions.dap-ui;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
mkSizeOption =
|
mkSizeOption =
|
||||||
helpers.mkNullOrOption
|
helpers.mkNullOrOption
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.dap.extensions.dap-virtual-text;
|
cfg = config.plugins.dap.extensions.dap-virtual-text;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.dap.extensions.dap-virtual-text = {
|
options.plugins.dap.extensions.dap-virtual-text = {
|
||||||
enable = mkEnableOption "dap-virtual-text";
|
enable = mkEnableOption "dap-virtual-text";
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.dap;
|
cfg = config.plugins.dap;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
dapHelpers = import ./dapHelpers.nix {inherit lib;};
|
dapHelpers = import ./dapHelpers.nix {inherit lib;};
|
||||||
in
|
in
|
||||||
with dapHelpers; {
|
with dapHelpers; {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.chadtree;
|
cfg = config.plugins.chadtree;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
mkListStr = helpers.defaultNullOpts.mkNullable (types.listOf types.str);
|
mkListStr = helpers.defaultNullOpts.mkNullable (types.listOf types.str);
|
||||||
in {
|
in {
|
||||||
options.plugins.chadtree =
|
options.plugins.chadtree =
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.neo-tree;
|
cfg = config.plugins.neo-tree;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
basePluginPath = ["plugins" "neo-tree"];
|
basePluginPath = ["plugins" "neo-tree"];
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.nvim-tree;
|
cfg = config.plugins.nvim-tree;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
inherit (helpers) ifNonNull';
|
inherit (helpers) ifNonNull';
|
||||||
|
|
||||||
openWinConfigOption =
|
openWinConfigOption =
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.diffview;
|
cfg = config.plugins.diffview;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
mkWinConfig = type: width: height: position:
|
mkWinConfig = type: width: height: position:
|
||||||
with helpers.defaultNullOpts; {
|
with helpers.defaultNullOpts; {
|
||||||
type = mkEnum ["split" "float"] type ''
|
type = mkEnum ["split" "float"] type ''
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.git-worktree;
|
cfg = config.plugins.git-worktree;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
plugins.git-worktree = {
|
plugins.git-worktree = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.gitblame;
|
cfg = config.plugins.gitblame;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
plugins.gitblame = {
|
plugins.gitblame = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.gitgutter;
|
cfg = config.plugins.gitgutter;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
plugins.gitgutter = {
|
plugins.gitgutter = {
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; {
|
||||||
helpers = import ../helpers.nix args;
|
|
||||||
in {
|
|
||||||
options.plugins.gitmessenger = {
|
options.plugins.gitmessenger = {
|
||||||
enable = mkEnableOption "gitmessenger";
|
enable = mkEnableOption "gitmessenger";
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
helpers = import ../helpers.nix args;
|
|
||||||
signOptions = defaults: {
|
signOptions = defaults: {
|
||||||
hl =
|
hl =
|
||||||
helpers.defaultNullOpts.mkStr defaults.hl
|
helpers.defaultNullOpts.mkStr defaults.hl
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.neogit;
|
cfg = config.plugins.neogit;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
sectionDefaultsModule = types.submodule {
|
sectionDefaultsModule = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.clangd-extensions;
|
cfg = config.plugins.clangd-extensions;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
basePluginPath = ["plugins" "clangd-extensions"];
|
basePluginPath = ["plugins" "clangd-extensions"];
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.plugins.julia-cell;
|
cfg = config.plugins.julia-cell;
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
# The keys are the option name in nixvim (under plugins.julia-cell.keymaps)
|
# The keys are the option name in nixvim (under plugins.julia-cell.keymaps)
|
||||||
# cmd: Such that the mapping action is ':JuliaCell${cmd}<CR>'
|
# cmd: Such that the mapping action is ':JuliaCell${cmd}<CR>'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ args:
|
} @ args:
|
||||||
with lib;
|
with lib;
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.markdown-preview;
|
cfg = config.plugins.markdown-preview;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
plugins.markdown-preview = {
|
plugins.markdown-preview = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.nvim-jdtls;
|
cfg = config.plugins.nvim-jdtls;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.nvim-jdtls =
|
options.plugins.nvim-jdtls =
|
||||||
helpers.extraOptionsOptions
|
helpers.extraOptionsOptions
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
defaultFuzzyFinder = "skim";
|
defaultFuzzyFinder = "skim";
|
||||||
helpers = import ../helpers.nix args;
|
|
||||||
in {
|
in {
|
||||||
options.plugins.openscad = {
|
options.plugins.openscad = {
|
||||||
enable = mkEnableOption "openscad.nvim, a plugin to manage OpenSCAD files";
|
enable = mkEnableOption "openscad.nvim, a plugin to manage OpenSCAD files";
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; {
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
|
||||||
options.plugins.plantuml-syntax = {
|
options.plugins.plantuml-syntax = {
|
||||||
enable = mkEnableOption "plantuml syntax support";
|
enable = mkEnableOption "plantuml syntax support";
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.rust-tools;
|
cfg = config.plugins.rust-tools;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.rust-tools =
|
options.plugins.rust-tools =
|
||||||
helpers.extraOptionsOptions
|
helpers.extraOptionsOptions
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.sniprun;
|
cfg = config.plugins.sniprun;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
mkList = helpers.defaultNullOpts.mkNullable (types.listOf types.str);
|
mkList = helpers.defaultNullOpts.mkNullable (types.listOf types.str);
|
||||||
in {
|
in {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.plugins.tagbar;
|
cfg = config.plugins.tagbar;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in
|
in
|
||||||
with lib; {
|
with lib; {
|
||||||
options.plugins.tagbar = {
|
options.plugins.tagbar = {
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; {
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
in {
|
|
||||||
# TODO those warnings have been added XX/XX/2023
|
# TODO those warnings have been added XX/XX/2023
|
||||||
# -> Remove them in ~ 1 month (oct. 2023)
|
# -> Remove them in ~ 1 month (oct. 2023)
|
||||||
imports =
|
imports =
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.treesitter-context;
|
cfg = config.plugins.treesitter-context;
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
# Those warnings were introduced on 08/25/2023. TODO: remove them in October 2023.
|
# Those warnings were introduced on 08/25/2023. TODO: remove them in October 2023.
|
||||||
imports = let
|
imports = let
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; {
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
in {
|
|
||||||
options.plugins.treesitter-refactor = let
|
options.plugins.treesitter-refactor = let
|
||||||
disable = mkOption {
|
disable = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.treesitter;
|
cfg = config.plugins.treesitter;
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
plugins.treesitter = {
|
plugins.treesitter = {
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; {
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
in {
|
|
||||||
options.plugins.ts-context-commentstring =
|
options.plugins.ts-context-commentstring =
|
||||||
helpers.extraOptionsOptions
|
helpers.extraOptionsOptions
|
||||||
// {
|
// {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.typst-vim;
|
cfg = config.plugins.typst-vim;
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.typst-vim =
|
options.plugins.typst-vim =
|
||||||
helpers.extraOptionsOptions
|
helpers.extraOptionsOptions
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.plugins.vim-slime;
|
cfg = config.plugins.vim-slime;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in
|
in
|
||||||
with lib; {
|
with lib; {
|
||||||
options.plugins.vim-slime = {
|
options.plugins.vim-slime = {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.plugins.vimtex;
|
cfg = config.plugins.vimtex;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in
|
in
|
||||||
with lib; {
|
with lib; {
|
||||||
options.plugins.vimtex = {
|
options.plugins.vimtex = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.conform-nvim;
|
cfg = config.plugins.conform-nvim;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.conform-nvim =
|
options.plugins.conform-nvim =
|
||||||
helpers.extraOptionsOptions
|
helpers.extraOptionsOptions
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.lsp;
|
cfg = config.plugins.lsp;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./language-servers
|
./language-servers
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.fidget;
|
cfg = config.plugins.fidget;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
plugins.fidget =
|
plugins.fidget =
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
mkLsp = {
|
mkLsp = {
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; {
|
||||||
helpers = import ../helpers.nix args;
|
|
||||||
in {
|
|
||||||
options.plugins.inc-rename = {
|
options.plugins.inc-rename = {
|
||||||
enable = mkEnableOption "inc-rename, a plugin previewing LSP renaming";
|
enable = mkEnableOption "inc-rename, a plugin previewing LSP renaming";
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
cfg = config.plugins.lsp.servers.ccls;
|
cfg = config.plugins.lsp.servers.ccls;
|
||||||
in {
|
in {
|
||||||
# Options: https://github.com/MaskRay/ccls/wiki/Customization#initialization-options
|
# Options: https://github.com/MaskRay/ccls/wiki/Customization#initialization-options
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
} @ args:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
lspHelpers = import ../helpers.nix args;
|
lspHelpers = import ../helpers.nix {inherit lib config pkgs;};
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
servers = [
|
servers = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
tools = trivial.importJSON ./efmls-configs-tools.json;
|
tools = trivial.importJSON ./efmls-configs-tools.json;
|
||||||
inherit (tools) linters formatters;
|
inherit (tools) linters formatters;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
cfg = config.plugins.lsp.servers.nixd;
|
cfg = config.plugins.lsp.servers.nixd;
|
||||||
in {
|
in {
|
||||||
# Options: https://github.com/nix-community/nixd/blob/main/docs/user-guide.md#configuration
|
# Options: https://github.com/nix-community/nixd/blob/main/docs/user-guide.md#configuration
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
cfg = config.plugins.lsp.servers.pylsp;
|
cfg = config.plugins.lsp.servers.pylsp;
|
||||||
in {
|
in {
|
||||||
# All settings are documented here:
|
# All settings are documented here:
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
cfg = config.plugins.lsp.servers.svelte;
|
cfg = config.plugins.lsp.servers.svelte;
|
||||||
in {
|
in {
|
||||||
# Options: https://github.com/sveltejs/language-tools/tree/master/packages/language-server#settings
|
# Options: https://github.com/sveltejs/language-tools/tree/master/packages/language-server#settings
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.lsp-format;
|
cfg = config.plugins.lsp-format;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.lsp-format =
|
options.plugins.lsp-format =
|
||||||
helpers.extraOptionsOptions
|
helpers.extraOptionsOptions
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.lsp-lines;
|
cfg = config.plugins.lsp-lines;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
plugins.lsp-lines = {
|
plugins.lsp-lines = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.lspsaga;
|
cfg = config.plugins.lspsaga;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
mkKeymapOption = default:
|
mkKeymapOption = default:
|
||||||
helpers.defaultNullOpts.mkNullable
|
helpers.defaultNullOpts.mkNullable
|
||||||
|
|
|
@ -1,90 +1,89 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
with lib; {
|
||||||
in
|
options.plugins.nvim-lightbulb = {
|
||||||
with lib; {
|
enable = mkEnableOption "nvim-lightbulb, showing available code actions";
|
||||||
options.plugins.nvim-lightbulb = {
|
|
||||||
enable = mkEnableOption "nvim-lightbulb, showing available code actions";
|
|
||||||
|
|
||||||
package = helpers.mkPackageOption "nvim-lightbulb" pkgs.vimPlugins.nvim-lightbulb;
|
package = helpers.mkPackageOption "nvim-lightbulb" pkgs.vimPlugins.nvim-lightbulb;
|
||||||
|
|
||||||
ignore = helpers.defaultNullOpts.mkNullable (types.listOf types.str) "[]" ''
|
ignore = helpers.defaultNullOpts.mkNullable (types.listOf types.str) "[]" ''
|
||||||
LSP client names to ignore
|
LSP client names to ignore
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sign = {
|
sign = {
|
||||||
enabled = helpers.defaultNullOpts.mkBool true "";
|
enabled = helpers.defaultNullOpts.mkBool true "";
|
||||||
priority = helpers.defaultNullOpts.mkInt 10 "";
|
priority = helpers.defaultNullOpts.mkInt 10 "";
|
||||||
};
|
|
||||||
|
|
||||||
float = {
|
|
||||||
enabled = helpers.defaultNullOpts.mkBool false "";
|
|
||||||
|
|
||||||
text = helpers.defaultNullOpts.mkStr "💡" "Text to show in the popup float";
|
|
||||||
|
|
||||||
winOpts = helpers.defaultNullOpts.mkNullable (types.attrsOf types.anything) "{}" ''
|
|
||||||
Options for the floating window (see |vim.lsp.util.open_floating_preview| for more information)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualText = {
|
|
||||||
enabled = helpers.defaultNullOpts.mkBool false "";
|
|
||||||
|
|
||||||
text = helpers.defaultNullOpts.mkStr "💡" "Text to show at virtual text";
|
|
||||||
|
|
||||||
hlMode = helpers.defaultNullOpts.mkStr "replace" ''
|
|
||||||
highlight mode to use for virtual text (replace, combine, blend), see
|
|
||||||
:help nvim_buf_set_extmark() for reference
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
statusText = {
|
|
||||||
enabled = helpers.defaultNullOpts.mkBool false "";
|
|
||||||
|
|
||||||
text = helpers.defaultNullOpts.mkStr "💡" "Text to provide when code actions are available";
|
|
||||||
|
|
||||||
textUnavailable = helpers.defaultNullOpts.mkStr "" ''
|
|
||||||
Text to provide when no actions are available
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
autocmd = {
|
|
||||||
enabled = helpers.defaultNullOpts.mkBool false "";
|
|
||||||
|
|
||||||
pattern = helpers.defaultNullOpts.mkNullable (types.listOf types.str) ''["*"]'' "";
|
|
||||||
|
|
||||||
events =
|
|
||||||
helpers.defaultNullOpts.mkNullable (types.listOf types.str)
|
|
||||||
''["CursorHold" "CursorHoldI"]'' "";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = let
|
float = {
|
||||||
cfg = config.plugins.nvim-lightbulb;
|
enabled = helpers.defaultNullOpts.mkBool false "";
|
||||||
setupOptions = {
|
|
||||||
inherit (cfg) ignore sign autocmd;
|
text = helpers.defaultNullOpts.mkStr "💡" "Text to show in the popup float";
|
||||||
float = {
|
|
||||||
inherit (cfg.float) enabled text;
|
winOpts = helpers.defaultNullOpts.mkNullable (types.attrsOf types.anything) "{}" ''
|
||||||
win_opts = cfg.float.winOpts;
|
Options for the floating window (see |vim.lsp.util.open_floating_preview| for more information)
|
||||||
};
|
'';
|
||||||
virtual_text = {
|
};
|
||||||
inherit (cfg.virtualText) enabled text;
|
|
||||||
hl_mode = cfg.virtualText.hlMode;
|
virtualText = {
|
||||||
};
|
enabled = helpers.defaultNullOpts.mkBool false "";
|
||||||
status_text = {
|
|
||||||
inherit (cfg.statusText) enabled text;
|
text = helpers.defaultNullOpts.mkStr "💡" "Text to show at virtual text";
|
||||||
text_unavailable = cfg.statusText.textUnavailable;
|
|
||||||
};
|
hlMode = helpers.defaultNullOpts.mkStr "replace" ''
|
||||||
|
highlight mode to use for virtual text (replace, combine, blend), see
|
||||||
|
:help nvim_buf_set_extmark() for reference
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
statusText = {
|
||||||
|
enabled = helpers.defaultNullOpts.mkBool false "";
|
||||||
|
|
||||||
|
text = helpers.defaultNullOpts.mkStr "💡" "Text to provide when code actions are available";
|
||||||
|
|
||||||
|
textUnavailable = helpers.defaultNullOpts.mkStr "" ''
|
||||||
|
Text to provide when no actions are available
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
autocmd = {
|
||||||
|
enabled = helpers.defaultNullOpts.mkBool false "";
|
||||||
|
|
||||||
|
pattern = helpers.defaultNullOpts.mkNullable (types.listOf types.str) ''["*"]'' "";
|
||||||
|
|
||||||
|
events =
|
||||||
|
helpers.defaultNullOpts.mkNullable (types.listOf types.str)
|
||||||
|
''["CursorHold" "CursorHoldI"]'' "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = let
|
||||||
|
cfg = config.plugins.nvim-lightbulb;
|
||||||
|
setupOptions = {
|
||||||
|
inherit (cfg) ignore sign autocmd;
|
||||||
|
float = {
|
||||||
|
inherit (cfg.float) enabled text;
|
||||||
|
win_opts = cfg.float.winOpts;
|
||||||
};
|
};
|
||||||
in
|
virtual_text = {
|
||||||
mkIf cfg.enable {
|
inherit (cfg.virtualText) enabled text;
|
||||||
extraPlugins = [cfg.package];
|
hl_mode = cfg.virtualText.hlMode;
|
||||||
extraConfigLua = ''
|
|
||||||
require("nvim-lightbulb").setup(${helpers.toLuaObject setupOptions})
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
status_text = {
|
||||||
|
inherit (cfg.statusText) enabled text;
|
||||||
|
text_unavailable = cfg.statusText.textUnavailable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
mkIf cfg.enable {
|
||||||
|
extraPlugins = [cfg.package];
|
||||||
|
extraConfigLua = ''
|
||||||
|
require("nvim-lightbulb").setup(${helpers.toLuaObject setupOptions})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.plugins.trouble;
|
cfg = config.plugins.trouble;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in
|
in
|
||||||
with lib; {
|
with lib; {
|
||||||
options.plugins.trouble =
|
options.plugins.trouble =
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
helpers,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.none-ls;
|
cfg = config.plugins.none-ls;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./servers.nix
|
./servers.nix
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
mkServer = {
|
mkServer = {
|
||||||
name,
|
name,
|
||||||
sourceType,
|
sourceType,
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
} @ args: let
|
}: let
|
||||||
helpers = import ./helpers.nix args;
|
helpers = import ./helpers.nix;
|
||||||
serverData = {
|
serverData = {
|
||||||
code_actions = {
|
code_actions = {
|
||||||
eslint = {
|
eslint = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.packer;
|
cfg = config.plugins.packer;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
plugins.packer = {
|
plugins.packer = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.luasnip;
|
cfg = config.plugins.luasnip;
|
||||||
helpers = import ../../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.luasnip = {
|
options.plugins.luasnip = {
|
||||||
enable = mkEnableOption "luasnip";
|
enable = mkEnableOption "luasnip";
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.airline;
|
cfg = config.plugins.airline;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
sectionType = with types; nullOr (oneOf [str (listOf str)]);
|
sectionType = with types; nullOr (oneOf [str (listOf str)]);
|
||||||
sectionOption = mkOption {
|
sectionOption = mkOption {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.lightline;
|
cfg = config.plugins.lightline;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
plugins.lightline = {
|
plugins.lightline = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.lualine;
|
cfg = config.plugins.lualine;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
mkSeparatorsOption = {
|
mkSeparatorsOption = {
|
||||||
leftDefault ? " ",
|
leftDefault ? " ",
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.telescope;
|
cfg = config.plugins.telescope;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./file-browser.nix
|
./file-browser.nix
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.telescope.extensions.file_browser;
|
cfg = config.plugins.telescope.extensions.file_browser;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
|
|
||||||
hiddenOption = types.submodule {
|
hiddenOption = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.telescope.extensions.frecency;
|
cfg = config.plugins.telescope.extensions.frecency;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.telescope.extensions.frecency = {
|
options.plugins.telescope.extensions.frecency = {
|
||||||
enable = mkEnableOption "frecency";
|
enable = mkEnableOption "frecency";
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.telescope.extensions.fzf-native;
|
cfg = config.plugins.telescope.extensions.fzf-native;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.telescope.extensions.fzf-native = {
|
options.plugins.telescope.extensions.fzf-native = {
|
||||||
enable = mkEnableOption "fzf-native";
|
enable = mkEnableOption "fzf-native";
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
helpers,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.telescope.extensions.media_files;
|
cfg = config.plugins.telescope.extensions.media_files;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
|
||||||
in {
|
in {
|
||||||
options.plugins.telescope.extensions.media_files = {
|
options.plugins.telescope.extensions.media_files = {
|
||||||
enable = mkEnableOption "media_files extension for telescope";
|
enable = mkEnableOption "media_files extension for telescope";
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue