diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-12-02 16:45:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 16:45:39 +0100 |
commit | 07e6296520fc83b1fdb287b5173494cdd0e9136f (patch) | |
tree | 9844003e550f161a5d563a726fc759fa1a84d22a /runtime/lua/vim/keymap.lua | |
parent | 731432342058c1c4340fc3cc4782b5fcd4a756a0 (diff) | |
parent | e40df8b1bc6a7832c7707696b374b19642dfd596 (diff) | |
download | rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.tar.gz rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.tar.bz2 rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.zip |
Merge pull request #21154 from clason/vimdoc-injections
feat(help): highlighted codeblocks
Diffstat (limited to 'runtime/lua/vim/keymap.lua')
-rw-r--r-- | runtime/lua/vim/keymap.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/keymap.lua b/runtime/lua/vim/keymap.lua index af41794c53..ef1c66ea20 100644 --- a/runtime/lua/vim/keymap.lua +++ b/runtime/lua/vim/keymap.lua @@ -2,7 +2,7 @@ local keymap = {} --- Add a new |mapping|. --- Examples: ---- <pre> +--- <pre>lua --- -- Can add mapping to Lua functions --- vim.keymap.set('n', 'lhs', function() print("real lua function") end) --- @@ -21,13 +21,13 @@ local keymap = {} --- </pre> --- --- Note that in a mapping like: ---- <pre> +--- <pre>lua --- vim.keymap.set('n', 'asdf', require('jkl').my_fun) --- </pre> --- --- the ``require('jkl')`` gets evaluated during this call in order to access the function. --- If you want to avoid this cost at startup you can wrap it in a function, for example: ---- <pre> +--- <pre>lua --- vim.keymap.set('n', 'asdf', function() return require('jkl').my_fun() end) --- </pre> --- @@ -93,7 +93,7 @@ end --- Remove an existing mapping. --- Examples: ---- <pre> +--- <pre>lua --- vim.keymap.del('n', 'lhs') --- --- vim.keymap.del({'n', 'i', 'v'}, '<leader>w', { buffer = 5 }) |