Compare commits

..

No commits in common. "1ee4da6efd35a45cb04410ffd0c13b44b339a602" and "09bd14c3e8b3fc95c7272ec8fddf60b33d3a2a26" have entirely different histories.

4 changed files with 34 additions and 48 deletions

45
flake.lock generated
View file

@ -5,11 +5,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1741352980, "lastModified": 1738453229,
"narHash": "sha256-+u2UunDA4Cl5Fci3m7S643HzKmIDAe+fiXrLqYsR2fs=", "narHash": "sha256-7H9XgNiGLKN1G1CgRh0vUL4AheZSYzPm+zmZ7vxbJdo=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "f4330d22f1c5d2ba72d3d22df5597d123fdb60a9", "rev": "32ea77a06711b758da0ad9bd6a844c5740a87abd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -38,11 +38,11 @@
}, },
"mnw": { "mnw": {
"locked": { "locked": {
"lastModified": 1741647548, "lastModified": 1738852285,
"narHash": "sha256-UqVAeOylufUGIx7BXSneFHD8eI6n0sVwEY2noFENnSE=", "narHash": "sha256-8Y1uyE6gGHxdU0Vcx2CMg/dAmDSxJw19aAl3TKbbo54=",
"owner": "Gerg-L", "owner": "Gerg-L",
"repo": "mnw", "repo": "mnw",
"rev": "3fb89e600e26b91d1795cf8a1a34e11e084b4a04", "rev": "6ae73dc9cb72cea17bcc2e3d4670825f483e80e8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -62,11 +62,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1741118843, "lastModified": 1732053863,
"narHash": "sha256-ggXU3RHv6NgWw+vc+HO4/9n0GPufhTIUjVuLci8Za8c=", "narHash": "sha256-DCIVdlb81Fct2uwzbtnawLBC/U03U2hqx8trqTJB7WA=",
"owner": "oxalica", "owner": "oxalica",
"repo": "nil", "repo": "nil",
"rev": "577d160da311cc7f5042038456a0713e9863d09e", "rev": "2e24c9834e3bb5aa2a3701d3713b43a6fb106362",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -77,11 +77,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1741865919, "lastModified": 1740303746,
"narHash": "sha256-4thdbnP6dlbdq+qZWTsm4ffAwoS8Tiq1YResB+RP6WE=", "narHash": "sha256-XcdiWLEhjJkMxDLKQJ0CCivmYYCvA5MDxu9pMybM5kM=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "573c650e8a14b2faa0041645ab18aed7e60f0c9a", "rev": "2d068ae5c6516b2d04562de50a58c682540de9bf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -93,17 +93,14 @@
}, },
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"lastModified": 1740877520, "lastModified": 1738452942,
"narHash": "sha256-oiwv/ZK/2FhGxrCkQkB83i7GnWXPPLzoqFHpDD3uYpk=", "narHash": "sha256-vJzFZGaCpnmo7I6i416HaBLpC+hvcURh/BQwROcGIp8=",
"owner": "nix-community", "type": "tarball",
"repo": "nixpkgs.lib", "url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
"rev": "147dee35aab2193b174e4c0868bd80ead5ce755c",
"type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "type": "tarball",
"repo": "nixpkgs.lib", "url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
"type": "github"
} }
}, },
"nmd": { "nmd": {
@ -141,11 +138,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1741055476, "lastModified": 1731983527,
"narHash": "sha256-52vwEV0oS2lCnx3c/alOFGglujZTLmObit7K8VblnS8=", "narHash": "sha256-JECaBgC0pQ91Hq3W4unH6K9to8s2Zl2sPNu7bLOv4ek=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "aefb7017d710f150970299685e8d8b549d653649", "rev": "71287228d96e9568e1e70c6bbfa3f992d145947b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -102,7 +102,11 @@ in {
setupOpts = mkPluginSetupOption "colorizer" { setupOpts = mkPluginSetupOption "colorizer" {
filetypes = mkOption { filetypes = mkOption {
type = attrsOf settingSubmodule; description = ''
Filetypes to enable on and their option overrides.
"*" means enable on all filetypes. Filetypes prefixed with "!" are disabled.
'';
default = {}; default = {};
example = { example = {
"*" = {}; "*" = {};
@ -111,21 +115,13 @@ in {
AARRGGBB = false; AARRGGBB = false;
}; };
}; };
description = '' type = attrsOf settingSubmodule;
Filetypes to enable on and their option overrides.
`"*"` means enable on all filetypes. Filetypes prefixed with `"!"` are disabled.
'';
}; };
user_default_options = mkOption { user_default_options = mkOption {
type = settingSubmodule; description = "Default options";
default = {}; default = {};
description = '' type = settingSubmodule;
`user_default_options` is the second parameter to nvim-colorizer's setup function.
Anything set here is the inverse of the previous setup configuration.
'';
}; };
}; };
}; };

View file

@ -14,11 +14,10 @@ in {
vim = { vim = {
lazy.plugins.nvim-surround = { lazy.plugins.nvim-surround = {
package = "nvim-surround"; package = "nvim-surround";
setupModule = "nvim-surround"; setupModule = "nvim-surround";
inherit (cfg) setupOpts; inherit (cfg) setupOpts;
event = ["BufReadPre" "BufNewFile"];
keys = [ keys = [
(mkLznKey "i" cfg.setupOpts.keymaps.insert) (mkLznKey "i" cfg.setupOpts.keymaps.insert)
(mkLznKey "i" cfg.setupOpts.keymaps.insert_line) (mkLznKey "i" cfg.setupOpts.keymaps.insert_line)

View file

@ -37,13 +37,9 @@ in {
type = bool; type = bool;
default = false; default = false;
description = '' description = ''
Whether to enable nvim-surround, Neovim plugin to add/change/delete nvim-surround: add/change/delete surrounding delimiter pairs with ease.
surrounding delimiter pairs with ease. Note that the default mappings deviate from upstream to avoid conflicts
with nvim-leap.
::: {.note}
The default mappings deviate from upstream to avoid conflicts with nvim-leap.
You may change those in your configuration if you do not use nvim-leap
:::
''; '';
}; };
setupOpts = mkPluginSetupOption "nvim-surround" { setupOpts = mkPluginSetupOption "nvim-surround" {
@ -65,9 +61,7 @@ in {
useVendoredKeybindings = mkOption { useVendoredKeybindings = mkOption {
type = bool; type = bool;
default = true; default = true;
description = '' description = "Use alternative set of keybindings that avoids conflicts with other popular plugins, e.g. nvim-leap";
Use alternative set of keybindings that avoids conflicts with other popular plugins, e.g. nvim-leap
'';
}; };
}; };
} }