Having trouble with a keymap #518
-
Any idea why the The telescope keymaps I set up are working fine for me. nixvim = {
enable = true;
viAlias = true;
vimAlias = true;
colorschemes.gruvbox.enable = true;
globals.mapleader = " ";
maps = {
normal."<leader>pv" = {
action = "vim.cmd.Ex";
};
};
plugins = {
lightline.enable = true;
telescope = {
enable = true;
keymaps = {
"<leader>pf" = "find_files";
"<C-p>" = "git_files";
};
};
};
}; |
Beta Was this translation helpful? Give feedback.
Answered by
GaetanLepage
Aug 16, 2023
Replies: 1 comment 2 replies
-
You can do it like this: maps = {
normal."<leader>pv" = {
action = "<cmd>Ex<cr>";
};
}; |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Indeed, the action you have set (
vim.cmd.Ex
) is in lua, so you can also do:This will write the action without quotes in the lua config.