neovim/scripts
shadmansaleh 6d41f65aa4 feat(lua): add vim.keymap
This introduces two new functions `vim.keymap.set` & `vim.keymap.del`

differences compared to regular set_keymap:
- remap is used as opposite of noremap. By default it's true for <Plug> keymaps and false for others.
- rhs can be lua function.
- mode can be a list of modes.
- replace_keycodes option for lua function expr maps. (Default: true)
- handles buffer specific keymaps

Examples:
```lua
vim.keymap.set('n', 'asdf', function() print("real lua function") end)
vim.keymap.set({'n', 'v'}, '<leader>lr', vim.lsp.buf.references, {buffer=true})
vim.keymap.set('n', '<leader>w', "<cmd>w<cr>", {silent = true, buffer = 5 })
vim.keymap.set('i', '<Tab>', function()
  return vim.fn.pumvisible() == 1 and "<C-n>" or "<Tab>"
end, {expr = true})
vim.keymap.set('n', '[%', '<Plug>(MatchitNormalMultiBackward)')

vim.keymap.del('n', 'asdf')
vim.keymap.del({'n', 'i', 'v'}, '<leader>w', {buffer = 5 })
```
2022-01-04 22:31:59 +06:00
..
check_urls.vim
check-includes.py py: flake8 fixes 2019-07-29 22:14:23 +02:00
download-unicode-files.sh Download emoji-data from UNIDATA/ 2020-10-04 11:50:29 -04:00
gen_filetype.lua feat: filetype.lua (#16600) 2022-01-04 07:28:29 -07:00
gen_help_html.py py: flake8 fixes 2019-07-29 22:14:23 +02:00
gen_vimdoc.py feat(lua): add vim.keymap 2022-01-04 22:31:59 +06:00
genappimage.sh genappimage.sh: migrate to linuxdeploy #10027 2019-05-18 20:38:19 +02:00
genvimvim.lua build(lint): check scripts/*.lua 2021-09-19 16:36:08 -07:00
git-log-pretty-since.sh release.sh: Format issue-numbers in descriptions [ci skip] 2019-01-04 06:03:47 +01:00
legacy2luatest.pl
lintcommit.lua chore: fix typos (#16361) 2021-11-27 11:10:48 -05:00
lua2dox_filter more generic shebang for lua2dox_filter 2021-03-04 15:44:40 +01:00
lua2dox.lua build(lint): check scripts/*.lua 2021-09-19 16:36:08 -07:00
movedocs.pl
pvscheck.sh ci: exclude lua-cjson from PVS report #15859 2021-10-05 05:02:49 -07:00
release.sh fix(release.sh): ignore failed "rm" 2021-10-02 08:26:57 -07:00
shadacat.py Merge #11319 'inccommand: fix issues with modifiers and prompting' 2019-11-05 17:34:21 -08:00
stripdecls.py scripts: autopep8 2019-07-29 22:14:23 +02:00
update_terminfo.sh
update_version_stamp.lua Use vX.Y.Z-dev+{git-describe} for development versions 2020-12-06 21:01:11 -05:00
vim-patch.sh ci: fix shellcheck errors introduced in version 0.8.0 2022-01-03 12:47:06 +01:00
vimpatch.lua build(lint): check scripts/*.lua 2021-09-19 16:36:08 -07:00
windows.ti win/TUI: fix text overrides line numbers #9474 2019-01-09 10:40:02 +01:00