Skip to content

Having trouble with a keymap #518

Closed Answered by GaetanLepage
boozedog asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, the action you have set (vim.cmd.Ex) is in lua, so you can also do:

maps = {
  normal."<leader>pv" = {
    action = "vim.cmd.Ex";
    lua = true;
  };
};

This will write the action without quotes in the lua config.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@GaetanLepage
Comment options

Answer selected by boozedog
@boozedog
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants