Skip to content

How can you set a keymap to execute lua code? #1599

Closed Answered by MattSturgeon
MFlossmann asked this question in Q&A
Discussion options

You must be logged in to vote

Use nixvim's "raw type":

```nix
action.__raw = "require('myutils.buffer').close";

Or

action.__raw = "function() require('myutils.buffer').close() end";

You can use helpers.mkRaw too (which does the same as above)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MFlossmann
Comment options

@MattSturgeon
Comment options

@MattSturgeon
Comment options

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