mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
plugins/wildfire.nvim: init
This commit is contained in:
committed by
Matt Sturgeon
parent
dd9bd8ef00
commit
f3dc931903
@@ -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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user