mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-13 19:00:19 +01:00
thinkpad-nixos/work: Refactor nixvim.extend
This commit is contained in:
parent
38c6269898
commit
e27cc05ed8
2 changed files with 26 additions and 11 deletions
|
|
@ -12,14 +12,29 @@
|
|||
config = {
|
||||
workAddr = "quentin.boyer@***REMOVED***";
|
||||
|
||||
extraNixvim = {
|
||||
extraConfigLuaPre = ''
|
||||
team_picker = dofile("${./telescope-team.lua}")
|
||||
'';
|
||||
commands = {
|
||||
Review = "lua team_picker()";
|
||||
};
|
||||
};
|
||||
extraNixvim = [
|
||||
(
|
||||
{ helpers, ... }:
|
||||
{
|
||||
extraConfigLuaPre = ''
|
||||
team_picker = dofile("${./telescope-team.lua}")
|
||||
'';
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>R";
|
||||
mode = [
|
||||
"n"
|
||||
"i"
|
||||
];
|
||||
action = helpers.mkRaw "team_picker";
|
||||
}
|
||||
];
|
||||
commands = {
|
||||
Review = "lua team_picker()";
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
|
||||
home.packages = [
|
||||
(pkgs.writeShellScriptBin "nwadminSendmail" ''
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@
|
|||
};
|
||||
|
||||
options.extraNixvim = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.anything;
|
||||
default = { };
|
||||
type = lib.types.listOf lib.types.anything;
|
||||
default = [ ];
|
||||
};
|
||||
|
||||
imports = [
|
||||
|
|
@ -84,7 +84,7 @@
|
|||
;
|
||||
})
|
||||
])
|
||||
++ [ (pkgs.neovimTraxys.nixvimExtend config.extraNixvim) ];
|
||||
++ [ (pkgs.neovimTraxys.extend { imports = config.extraNixvim; }) ];
|
||||
|
||||
nix.registry = {
|
||||
"my".flake = flake;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue