diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-12-31 20:10:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-31 20:10:35 +0100 |
commit | b218d02c442ebacba1fdef0cca9e40315a46aedd (patch) | |
tree | 0780d3d7eed40aff1e94347922dc7d5b0ca23107 /src/nvim/buffer_defs.h | |
parent | 5c1b8b77c59d06f80368784f0eac92d6a331a313 (diff) | |
parent | b411f436d3e2e8a902dbf879d00fc5ed0fc436d3 (diff) | |
download | rneovim-b218d02c442ebacba1fdef0cca9e40315a46aedd.tar.gz rneovim-b218d02c442ebacba1fdef0cca9e40315a46aedd.tar.bz2 rneovim-b218d02c442ebacba1fdef0cca9e40315a46aedd.zip |
Merge pull request #16594 from shadmansaleh/feat/api/lua_keymaps
feat(api): add support for lua function & description in keymap
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 49e527e98b..63a550c017 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -352,6 +352,7 @@ struct mapblock { char_u *m_keys; // mapped from, lhs char_u *m_str; // mapped to, rhs char_u *m_orig_str; // rhs as entered by the user + LuaRef m_luaref; // lua function reference as rhs int m_keylen; // strlen(m_keys) int m_mode; // valid mode int m_noremap; // if non-zero no re-mapping for m_str @@ -359,6 +360,7 @@ struct mapblock { char m_nowait; // <nowait> used char m_expr; // <expr> used, m_str is an expression sctx_T m_script_ctx; // SCTX where map was defined + char *m_desc; // description of keymap }; /// Used for highlighting in the status line. |