Skip to content

Commit

Permalink
add flash-nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
emattiza committed Mar 29, 2024
1 parent 0becfa6 commit 7329bc8
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 30 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"purescript-vim"
"dhall-vim"
"cellular-automaton"
"flash-nvim"
];

pluginOverlay = lib.buildPluginOverlay;
Expand Down Expand Up @@ -189,6 +190,9 @@
enable = true;
coverage.enable = true;
};
vim.flash = {
enable = true;
};
};
in rec {
apps = rec {
Expand Down
1 change: 1 addition & 0 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
./undotree
./git
./testing
./flash
];
}
43 changes: 43 additions & 0 deletions modules/flash/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.flash;
in {
options.vim.flash = {
enable = mkOption {
type = types.bool;
description = "Adds flash.nvim for easier label navigation";
};
};

config =
mkIf cfg.enable
{
vim.startPlugins = with pkgs.neovimPlugins; [
flash-nvim
];
vim.luaConfigRC =
/*
lua
*/
''
wk.register({
["<leader>s"] = {
s = {
"<cmd>lua require(\"flash\").jump()<CR>",
"Flash"
},
S = {
"<cmd>lua require(\"flash\").treesitter()<CR>",
"Flash Treesitter"
}
}
})
'';
};
}
74 changes: 44 additions & 30 deletions npins/sources.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
{
"pins": {
"vim-jinja2-syntax": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "Glench",
"repo": "Vim-Jinja2-Syntax"
},
"branch": "main",
"revision": "2c17843b074b06a835f88587e1023ceff7e2c7d1",
"url": "https://github.com/Glench/Vim-Jinja2-Syntax/archive/2c17843b074b06a835f88587e1023ceff7e2c7d1.tar.gz",
"hash": "13mfzsw3kr3r826wkpd3jhh1sy2j10hlj1bv8n8r01hpbngikfg7"
},
"bufdelete-nvim": {
"type": "Git",
"repository": {
Expand Down Expand Up @@ -120,6 +108,32 @@
"url": "https://github.com/vmchale/dhall-vim/archive/68500ef46ff3706f46c99db3be7a0c8abcf6a3ae.tar.gz",
"hash": "0lwna4kcq7davfvh3535n8wl9jxkjm7cg6jgpisd17kvagihh8qw"
},
"flash-nvim": {
"type": "GitRelease",
"repository": {
"type": "GitHub",
"owner": "folke",
"repo": "flash.nvim"
},
"pre_releases": false,
"version_upper_bound": null,
"version": "v1.18.2",
"revision": "48817af25f51c0590653bbc290866e4890fe1cbe",
"url": "https://api.github.com/repos/folke/flash.nvim/tarball/v1.18.2",
"hash": "0cf1ll91mhqw73p3y366fxylrq0y222jl2kb8sxf2s4gisxpppcg"
},
"fugitive": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "tpope",
"repo": "vim-fugitive"
},
"branch": "main",
"revision": "7679842b904aa7d290087a52c35229ffe8e7b218",
"url": "https://github.com/tpope/vim-fugitive/archive/7679842b904aa7d290087a52c35229ffe8e7b218.tar.gz",
"hash": "1z1sd39fb1y98syf4azsacwnmb8cqz6vk144crfal416h8jnx989"
},
"gitsigns-nvim": {
"type": "Git",
"repository": {
Expand Down Expand Up @@ -420,6 +434,18 @@
"url": "https://github.com/nvim-treesitter/nvim-treesitter-context/archive/63f3ffc50b0afc59be1015153d00922498085be8.tar.gz",
"hash": "1jvsf80q8dxhdxbphrms755aj4ak58xacpzgs91v5jb5zjcvmsx9"
},
"nvim-treesitter-playground": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "nvim-treesitter",
"repo": "playground"
},
"branch": "main",
"revision": "2b81a018a49f8e476341dfcb228b7b808baba68b",
"url": "https://github.com/nvim-treesitter/playground/archive/2b81a018a49f8e476341dfcb228b7b808baba68b.tar.gz",
"hash": "1b7h4sih8dc55w12f0v5knk9cxfpy0iffhbvmg0g84if55ar616v"
},
"nvim-ts-autotag": {
"type": "Git",
"repository": {
Expand Down Expand Up @@ -456,18 +482,6 @@
"url": "https://github.com/navarasu/onedark.nvim/archive/462b45758ea94ff30ad48979268094590a6b7b7e.tar.gz",
"hash": "0m7alckgwnqzv9zycrvpisnx8bg2n8057j8lvqjmx4fagfnr8nmh"
},
"nvim-treesitter-playground": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "nvim-treesitter",
"repo": "playground"
},
"branch": "main",
"revision": "2b81a018a49f8e476341dfcb228b7b808baba68b",
"url": "https://github.com/nvim-treesitter/playground/archive/2b81a018a49f8e476341dfcb228b7b808baba68b.tar.gz",
"hash": "1b7h4sih8dc55w12f0v5knk9cxfpy0iffhbvmg0g84if55ar616v"
},
"plenary-nvim": {
"type": "Git",
"repository": {
Expand Down Expand Up @@ -588,17 +602,17 @@
"url": "https://github.com/mbbill/undotree/archive/485f01efde4e22cb1ce547b9e8c9238f36566f21.tar.gz",
"hash": "13bpnacif1r40ncln14m013gnh6n9dnbvawnnna44splr6x39dan"
},
"fugitive": {
"vim-jinja2-syntax": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "tpope",
"repo": "vim-fugitive"
"owner": "Glench",
"repo": "Vim-Jinja2-Syntax"
},
"branch": "main",
"revision": "7679842b904aa7d290087a52c35229ffe8e7b218",
"url": "https://github.com/tpope/vim-fugitive/archive/7679842b904aa7d290087a52c35229ffe8e7b218.tar.gz",
"hash": "1z1sd39fb1y98syf4azsacwnmb8cqz6vk144crfal416h8jnx989"
"revision": "2c17843b074b06a835f88587e1023ceff7e2c7d1",
"url": "https://github.com/Glench/Vim-Jinja2-Syntax/archive/2c17843b074b06a835f88587e1023ceff7e2c7d1.tar.gz",
"hash": "13mfzsw3kr3r826wkpd3jhh1sy2j10hlj1bv8n8r01hpbngikfg7"
},
"vim-terraform": {
"type": "Git",
Expand Down

0 comments on commit 7329bc8

Please sign in to comment.