utility/nvim-surfers: init

This commit is contained in:
Artur Manuel 2025-02-16 23:05:16 +00:00
commit 9b6bd46758
No known key found for this signature in database
7 changed files with 72 additions and 1 deletions

View file

@ -178,6 +178,7 @@ isMaximal: {
diffview-nvim.enable = true; diffview-nvim.enable = true;
yanky-nvim.enable = false; yanky-nvim.enable = false;
leetcode-nvim.enable = isMaximal; leetcode-nvim.enable = isMaximal;
nvim-surfers.enable = false; # needs mplayer to be run
motion = { motion = {
hop.enable = true; hop.enable = true;
leap.enable = true; leap.enable = true;

View file

@ -44,9 +44,12 @@
[amadaluzia](https://github.com/amadaluzia): [amadaluzia](https://github.com/amadaluzia):
[haskell-tools.nvim]: https://github.com/MrcJkb/haskell-tools.nvim [haskell-tools.nvim]: https://github.com/MrcJkb/haskell-tools.nvim
[nvim-surfers]: https://github.com/fpeterek/nvim-surfers
- Add Haskell support under `vim.languages.haskell` using [haskell-tools.nvim]. - Add Haskell support under `vim.languages.haskell` using [haskell-tools.nvim].
- Add [nvim-surfers] as an accessibility tool under `vim.utility.nvim-surfers`.
[horriblename](https://github.com/horriblename): [horriblename](https://github.com/horriblename):
[blink.cmp]: https://github.com/saghen/blink.cmp [blink.cmp]: https://github.com/saghen/blink.cmp

View file

@ -16,5 +16,6 @@
./wakatime ./wakatime
./yanky-nvim ./yanky-nvim
./leetcode-nvim ./leetcode-nvim
./nvim-surfers
]; ];
} }

View file

@ -0,0 +1,29 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.vim.utility.nvim-surfers;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = [
"nvim-surfers"
];
lazy.plugins.nvim-surfers = {
package = "nvim-surfers";
setupModule = "nvim-surfers";
inherit (cfg) setupOpts;
};
extraPackages = [
pkgs.mplayer
];
};
};
}

View file

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

View file

@ -0,0 +1,19 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.nvim.types) mkPluginSetupOption;
inherit (lib.types) str;
in {
options.vim.utility = {
nvim-surfers = {
enable = mkEnableOption "nvim-surfers";
setupOpts = mkPluginSetupOption "nvim-surfers" {
tmux = mkEnableOption "using tmux for nvim-surfers";
path = mkOption {
type = str;
default = "resources/surfers.mp4";
description = "Path of the Subway Surfers gameplay to watch.";
};
};
};
};
}

View file

@ -1550,6 +1550,18 @@
"url": "https://github.com/petertriho/nvim-scrollbar/archive/6994eb9f73d5fdc36ee2c8717940e8c853e51a49.tar.gz", "url": "https://github.com/petertriho/nvim-scrollbar/archive/6994eb9f73d5fdc36ee2c8717940e8c853e51a49.tar.gz",
"hash": "0h01gcaqgjkb2392zl2jwvlsh5qmz10k9sy5rhyz1kwizmw7nw7y" "hash": "0h01gcaqgjkb2392zl2jwvlsh5qmz10k9sy5rhyz1kwizmw7nw7y"
}, },
"nvim-surfers": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "fpeterek",
"repo": "nvim-surfers"
},
"branch": "master",
"revision": "aaebf28849e2eadfebe02549dcb2cb20c7875b3d",
"url": "https://github.com/fpeterek/nvim-surfers/archive/aaebf28849e2eadfebe02549dcb2cb20c7875b3d.tar.gz",
"hash": "sha256-jKduxXhqKUadREeFtrOVYQCKlkJCzjHKnanx3TGucDA="
},
"nvim-surround": { "nvim-surround": {
"type": "Git", "type": "Git",
"repository": { "repository": {
@ -2068,4 +2080,4 @@
} }
}, },
"version": 3 "version": 3
} }