mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 11:44:32 +02:00
modules/keymaps: allow action.__raw
This commit is contained in:
parent
7eefcfa5ee
commit
97eed79568
2 changed files with 6 additions and 1 deletions
|
@ -105,7 +105,7 @@ in rec {
|
|||
};
|
||||
|
||||
action = mkOption ({
|
||||
type = str;
|
||||
type = helpers.nixvimTypes.maybeRaw str;
|
||||
description = "The action to execute.";
|
||||
}
|
||||
// (
|
||||
|
|
|
@ -26,6 +26,11 @@
|
|||
key = ",";
|
||||
action = "<cmd>echo \"test\"<cr>";
|
||||
}
|
||||
{
|
||||
# raw action using rawType
|
||||
key = "<C-p>";
|
||||
action.__raw = "function() print('hello') end";
|
||||
}
|
||||
{
|
||||
key = "<C-a>";
|
||||
action = "function() print('toto') end";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue