Replies: 1 comment 2 replies
-
You can use the files."foo/bar.lua".keymaps = [
{
key = "<C-m>";
action = "foo";
}
]; Will generate a file at vim.keymap.set("", "<C-m", "foo", {}) (well not exactly this content but an equivalent). |
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
-
In my old pre-Nix Neovim config I already have quite a lot of Lua code split into multiple files and directories. For instance, I have a custom function for formatting which I would like to map to <LocalLeader>\. That function calls other functions from a utility module shared with other functions. What would be the best approach to add this directory to my Nixvim config?
Beta Was this translation helpful? Give feedback.
All reactions