Skip to content

Commit 5cc615a

Browse files
committed
plugins/substitute: remove __raw
1 parent 8ba3a52 commit 5cc615a

File tree

1 file changed

+12
-7
lines changed
  • tests/test-sources/plugins/by-name/substitute

1 file changed

+12
-7
lines changed

tests/test-sources/plugins/by-name/substitute/default.nix

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
{
2+
lib,
3+
...
4+
}:
15
{
26
empty = {
37
plugins.substitute.enable = true;
@@ -7,10 +11,11 @@
711
plugins.substitute = {
812
enable = true;
913
settings = {
10-
on_substitute.__raw = "nil";
14+
on_substitute = lib.nixvim.mkRaw "nil";
1115
yank_substituted_text = false;
1216
preserve_cursor_position = false;
13-
modifiers.__raw = "nil";
17+
modifiers = lib.nixvim.mkRaw "nil";
18+
1419
highlight_substituted_text = {
1520
enabled = true;
1621
timer = 500;
@@ -21,15 +26,15 @@
2126
confirm = false;
2227
complete_word = false;
2328
group_substituted_text = false;
24-
subject.__raw = "nil";
25-
range.__raw = "nil";
26-
register.__raw = "nil";
29+
subject = lib.nixvim.mkRaw "nil";
30+
range = lib.nixvim.mkRaw "nil";
31+
register = lib.nixvim.mkRaw "nil";
2732
suffix = "";
2833
auto_apply = false;
2934
cursor_position = "end";
3035
};
3136
exchange = {
32-
motion.__raw = "nil";
37+
motion = lib.nixvim.mkRaw "nil";
3338
use_esc_to_cancel = true;
3439
preserve_cursor_position = false;
3540
};
@@ -41,7 +46,7 @@
4146
plugins.substitute = {
4247
enable = true;
4348
settings = {
44-
on_substitute.__raw = ''
49+
on_substitute = lib.nixvim.nestedLiteralLua ''
4550
function(params)
4651
vim.notify("substituted using register " .. params.register)
4752
end

0 commit comments

Comments
 (0)