mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
22 lines
397 B
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;
|
|
};
|
|
};
|
|
};
|
|
}
|