From a6cba103cebce535279db197f9efeb34e9d1171f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 29 Nov 2023 20:32:40 +0800 Subject: refactor: move some constants out of vim_defs.h (#26298) --- runtime/lua/vim/_meta/vimfn.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'runtime/lua') diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 947424c4ad..05e5b2b871 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -5050,8 +5050,8 @@ function vim.fn.map(expr1, expr2) end --- "mode_bits" Nvim's internal binary representation of "mode". --- |mapset()| ignores this; only "mode" is used. --- See |maplist()| for usage examples. The values ---- are from src/nvim/vim.h and may change in the ---- future. +--- are from src/nvim/state_defs.h and may change in +--- the future. --- --- The dictionary can be used to restore a mapping with --- |mapset()|. @@ -5129,8 +5129,8 @@ function vim.fn.mapcheck(name, mode, abbr) end --- endfor --- echo saved_maps->mapnew({_, m -> m.lhs}) --- vim +--- src/nvim/state_defs.h file and they can be discovered at +--- runtime using |:map-commands| and "maplist()". Example: >vim --- omap xyzzy --- let op_bit = maplist()->filter( --- \ {_, m -> m.lhs == 'xyzzy'})[0].mode_bits -- cgit