plugins/wildfire.nvim: init

This commit is contained in:
Filippo Airaldi
2026-05-29 14:20:19 +00:00
committed by Matt Sturgeon
parent dd9bd8ef00
commit f3dc931903
2 changed files with 85 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
{ config, lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "wildfire";
package = "wildfire-nvim";
description = "A modern successor to [wildfire.vim](https://github.com/gcmt/wildfire.vim), empowered with the superpower of treesitter.";
maintainers = [ lib.maintainers.fairaldi ];
settingsExample = {
surrounds = [
[
"("
")"
]
[
"{"
"}"
]
[
"<"
">"
]
[
"["
"]"
]
];
keymaps = {
init_selection = "<CR>";
node_incremental = "<CR>";
node_decremental = "<BS>";
};
filetype_exclude = [ "qf" ];
};
extraConfig = {
warnings = lib.nixvim.mkWarnings "plugins.treesitter-context" {
when = !config.plugins.treesitter.enable;
message = "This plugin needs treesitter to function as intended.";
};
};
}
@@ -0,0 +1,43 @@
{
empty = {
plugins = {
treesitter.enable = true;
wildfire.enable = true;
};
};
defaults = {
plugins = {
treesitter.enable = true;
wildfire = {
enable = true;
settings = {
surrounds = [
[
"("
")"
]
[
"{"
"}"
]
[
"<"
">"
]
[
"["
"]"
]
];
keymaps = {
init_selection = "<CR>";
node_incremental = "<CR>";
node_decremental = "<BS>";
};
filetype_exclude = [ "qf" ];
};
};
};
};
}