-
Hi im trying to configure a kyboard shortcut to open the snacks explorer, in neovim that would be: keys = {{ "", function() Snacks.picker.pick("files") end, {} }}. In nixvim i'm trying to do config.keymaps = [{key = "; action = "snacks.explorer()"; mode = ["n"];}]; but it's not working. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Yes, this is probably because keymaps = [
{
key = "<YOUR_KEY>";
action.__raw = "require('snacks').explorer"; # No trailing `()` as we don't want to call the function here
mode = "n";
}
]; A useful thing to do when experimenting with such things is to use the vendored |
Beta Was this translation helpful? Give feedback.
Thanks! actually the fix was
function() Snacks.explorer() end
which I probably should have figured out given that i've configured this in lua before. Sorry for wasting your time and thanks for all the help.