mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-11 16:05:30 +00:00
utility/nvim-surfers: init
This commit is contained in:
parent
ae26ece143
commit
9b6bd46758
7 changed files with 72 additions and 1 deletions
|
|
@ -178,6 +178,7 @@ isMaximal: {
|
|||
diffview-nvim.enable = true;
|
||||
yanky-nvim.enable = false;
|
||||
leetcode-nvim.enable = isMaximal;
|
||||
nvim-surfers.enable = false; # needs mplayer to be run
|
||||
motion = {
|
||||
hop.enable = true;
|
||||
leap.enable = true;
|
||||
|
|
|
|||
|
|
@ -44,9 +44,12 @@
|
|||
[amadaluzia](https://github.com/amadaluzia):
|
||||
|
||||
[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 [nvim-surfers] as an accessibility tool under `vim.utility.nvim-surfers`.
|
||||
|
||||
[horriblename](https://github.com/horriblename):
|
||||
|
||||
[blink.cmp]: https://github.com/saghen/blink.cmp
|
||||
|
|
|
|||
|
|
@ -16,5 +16,6 @@
|
|||
./wakatime
|
||||
./yanky-nvim
|
||||
./leetcode-nvim
|
||||
./nvim-surfers
|
||||
];
|
||||
}
|
||||
|
|
|
|||
29
modules/plugins/utility/nvim-surfers/config.nix
Normal file
29
modules/plugins/utility/nvim-surfers/config.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
6
modules/plugins/utility/nvim-surfers/default.nix
Normal file
6
modules/plugins/utility/nvim-surfers/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./nvim-surfers.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
||||
19
modules/plugins/utility/nvim-surfers/nvim-surfers.nix
Normal file
19
modules/plugins/utility/nvim-surfers/nvim-surfers.nix
Normal 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.";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1550,6 +1550,18 @@
|
|||
"url": "https://github.com/petertriho/nvim-scrollbar/archive/6994eb9f73d5fdc36ee2c8717940e8c853e51a49.tar.gz",
|
||||
"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": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue