mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-12 20:11:08 +01:00
plugins/substitute: removed options and used nested plugins/substitute: changed example plugins/substitute: remove __raw plugins/substitute: Fixed failing test plugins/substitute: removedplugins/substitute: init removed
29 lines
677 B
Nix
29 lines
677 B
Nix
{ lib, ... }:
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "substitute";
|
|
package = "substitute-nvim";
|
|
description = "Operator to substitute and exchange text objects quickly.";
|
|
|
|
maintainers = [ lib.maintainers.fwastring ];
|
|
|
|
settingsExample = {
|
|
on_substitute = lib.nixvim.nestedLiteralLua ''
|
|
function(params)
|
|
vim.notify("substituted using register " .. params.register)
|
|
end
|
|
'';
|
|
|
|
yank_substituted_text = true;
|
|
modifiers = [
|
|
"join"
|
|
"trim"
|
|
];
|
|
highlight_substituted_text.timer = 750;
|
|
range = {
|
|
prefix = "S";
|
|
complete_word = true;
|
|
auto_apply = true;
|
|
cursor_position = "start";
|
|
};
|
|
};
|
|
}
|