mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
keymaps: use 'action.__raw' instead of 'lua = true' internally
This commit is contained in:
parent
26a7c7ec5c
commit
2294a12b0b
8 changed files with 11 additions and 21 deletions
|
@ -233,7 +233,7 @@ in {
|
|||
(key != null)
|
||||
{
|
||||
inherit key;
|
||||
action = luaFunc;
|
||||
action.__raw = luaFunc;
|
||||
}
|
||||
)
|
||||
{
|
||||
|
@ -256,7 +256,7 @@ in {
|
|||
mapAttrsToList
|
||||
(id: key: {
|
||||
inherit key;
|
||||
action = genLuaFunc id;
|
||||
action.__raw = genLuaFunc id;
|
||||
})
|
||||
mappingsAttrs
|
||||
)
|
||||
|
@ -283,7 +283,6 @@ in {
|
|||
helpers.keymaps.mkKeymaps
|
||||
{
|
||||
mode = "n";
|
||||
lua = true;
|
||||
options.silent = cfg.keymapsSilent;
|
||||
}
|
||||
allMappings;
|
||||
|
|
|
@ -23,8 +23,7 @@ in {
|
|||
{
|
||||
mode = "i";
|
||||
key = "<Tab>";
|
||||
action = "require('intellitab').indent";
|
||||
lua = true;
|
||||
action.__raw = "require('intellitab').indent";
|
||||
}
|
||||
];
|
||||
plugins.treesitter = {
|
||||
|
|
|
@ -61,8 +61,7 @@ with lib; {
|
|||
{
|
||||
mode = "n";
|
||||
key = copy;
|
||||
action = "require('osc52').copy_operator";
|
||||
lua = true;
|
||||
action.__raw = "require('osc52').copy_operator";
|
||||
options = {
|
||||
expr = true;
|
||||
inherit silent;
|
||||
|
@ -80,8 +79,7 @@ with lib; {
|
|||
{
|
||||
mode = "v";
|
||||
key = copyVisual;
|
||||
action = "require('osc52').copy_visual";
|
||||
lua = true;
|
||||
action.__raw = "require('osc52').copy_visual";
|
||||
options.silent = silent;
|
||||
}
|
||||
];
|
||||
|
|
|
@ -57,8 +57,7 @@ in {
|
|||
motion: key: {
|
||||
mode = ["n" "o" "x"];
|
||||
inherit key;
|
||||
action = "function() require('spider').motion('${motion}') end";
|
||||
lua = true;
|
||||
action.__raw = "function() require('spider').motion('${motion}') end";
|
||||
options = {
|
||||
inherit (cfg.keymaps) silent;
|
||||
desc = "Spider-${motion}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue