From 58df501913c17cb3a79f41548088d0f0bcf3a305 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 18 Jun 2025 13:39:35 +0200 Subject: docs: api, pack, events, develop --- runtime/lua/vim/keymap.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim/keymap.lua') diff --git a/runtime/lua/vim/keymap.lua b/runtime/lua/vim/keymap.lua index 4c19435ef8..2afb628267 100644 --- a/runtime/lua/vim/keymap.lua +++ b/runtime/lua/vim/keymap.lua @@ -21,12 +21,12 @@ local keymap = {} --- --- ```lua --- -- Map "x" to a Lua function: ---- vim.keymap.set('n', 'x', function() print("real lua function") end) +--- vim.keymap.set('n', 'x', function() print('real lua function') end) --- -- Map "x" to multiple modes for the current buffer: --- vim.keymap.set({'n', 'v'}, 'x', vim.lsp.buf.references, { buffer = true }) --- -- Map to an expression (|:map-|): --- vim.keymap.set('i', '', function() ---- return vim.fn.pumvisible() == 1 and "" or "" +--- return vim.fn.pumvisible() == 1 and '' or '' --- end, { expr = true }) --- -- Map "[%%" to a mapping: --- vim.keymap.set('n', '[%%', '(MatchitNormalMultiBackward)') -- cgit