modules/commands: allow commands to be raw lua

This commit is contained in:
Nick Hu 2024-05-21 12:38:48 +01:00 committed by Gaétan Lepage
parent 3ec6dff17b
commit 1c9f2a23a6
2 changed files with 9 additions and 1 deletions

View file

@ -9,6 +9,14 @@
"Z" = {
command = ":echo fooo<CR>";
};
"InsertHere" = {
command.__raw = ''
function(opts)
vim.api.nvim_put({opts.args}, 'c', true, true)
end
'';
nargs = 1;
};
};
};
}