Merge branch 'main' into fix-rustfmt

This commit is contained in:
raf 2025-05-18 02:18:26 +03:00 committed by GitHub
commit e3316b98df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 99 additions and 11 deletions

View file

@ -18,7 +18,7 @@
showSignColumn = "signcolumn";
# 2025-02-07
scrollOff = "scrolloff";
scrollOffset = "scrolloff";
};
in {
imports = concatLists [

View file

@ -6,11 +6,10 @@
inherit (lib.options) mkOption mkEnableOption literalMD;
inherit (lib.strings) optionalString;
inherit (lib.attrsets) optionalAttrs;
inherit (lib.types) enum bool str int either;
inherit (lib.types) enum bool str either;
inherit (lib.generators) mkLuaInline;
inherit (lib.nvim.dag) entryAfter;
inherit (lib.nvim.binds) pushDownDefault;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.types) luaInline;
cfg = config.vim;
@ -22,12 +21,6 @@ in {
description = "Hide search highlight so it doesn't stay highlighted";
};
scrollOffset = mkOption {
type = int;
default = 8;
description = "Start scrolling this number of lines from the top or bottom of the page.";
};
syntaxHighlighting = mkOption {
type = bool;
default = !config.vim.treesitter.highlight.enable;

View file

@ -212,4 +212,17 @@ in {
'';
styles = ["dark" "light" "dark_dimmed" "dark_default" "light_default" "dark_high_contrast" "light_high_contrast" "dark_colorblind" "light_colorblind" "dark_tritanopia" "light_tritanopia"];
};
solarized-osaka = {
setup = {transparent ? false, ...}: ''
require("solarized-osaka").setup({
transparent = ${boolToString transparent},
styles = {
comments = { italic = false },
keywords = { italic = false },
}
})
vim.cmd.colorscheme("solarized-osaka")
'';
};
}

View file

@ -14,7 +14,7 @@ in {
startPlugins = ["hardtime-nvim"];
pluginRC.hardtime = entryAnywhere ''
require("hardtime").setup (${toLuaObject cfg.setupOpts})
require("hardtime").setup(${toLuaObject cfg.setupOpts})
'';
};
};

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" {};
};
}