Merge branch 'main' into telescope-ext

This commit is contained in:
raf 2025-06-04 13:40:41 +03:00 committed by GitHub
commit 2442f5107b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
125 changed files with 2267 additions and 684 deletions

View file

@ -2,5 +2,6 @@ _: {
imports = [
./which-key
./cheatsheet
./hardtime
];
}

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.binds.hardtime-nvim;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = ["hardtime-nvim"];
pluginRC.hardtime = entryAnywhere ''
require("hardtime").setup(${toLuaObject cfg.setupOpts})
'';
};
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./hardtime.nix
./config.nix
];
}

View file

@ -0,0 +1,10 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.binds.hardtime-nvim = {
enable = mkEnableOption "hardtime helper for no repeat keybinds";
setupOpts = mkPluginSetupOption "hardtime-nvim" {};
};
}

View file

@ -1,5 +1,6 @@
{
imports = [
./image-nvim
./img-clip
];
}

View file

@ -0,0 +1,23 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.utility.images.img-clip;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = [
"img-clip"
];
pluginRC.image-nvim = entryAnywhere ''
require("img-clip").setup(${toLuaObject cfg.setupOpts})
'';
};
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./config.nix
./img-clip.nix
];
}

View file

@ -0,0 +1,11 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.utility.images.img-clip = {
enable = mkEnableOption "img-clip to paste images into any markup language";
setupOpts = mkPluginSetupOption "img-clip" {};
};
}