1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00
nixvim/tests/test-sources/modules/commands.nix

22 lines
397 B
Nix

{
example = {
userCommands = {
"W" = {
command = ":w<CR>";
desc = "Write file";
nargs = 0;
};
"Z" = {
command = ":echo fooo<CR>";
};
"InsertHere" = {
command.__raw = ''
function(opts)
vim.api.nvim_put({opts.args}, 'c', true, true)
end
'';
nargs = 1;
};
};
};
}