Commit Graph

58 Commits

Author SHA1 Message Date
Folke Lemaitre 22bf6ae04b
style: sort requires 2023-10-09 11:25:42 +02:00
Folke Lemaitre 9d92e65fd1
fix(keys): fixed adding managed keys 2023-10-08 19:14:33 +02:00
Folke Lemaitre b79099cc9d
feat(keys): refactor code and allow disabling keymaps per mode. mode no longer needs to be exactly the same in order to disable. 2023-10-08 10:11:33 +02:00
Folke Lemaitre 09e30f88cd
fix(keys): fixed buffer-local mappings 2023-10-07 20:41:06 +02:00
Folke Lemaitre 8871602e54
fix(event): move all ft logic to the event handler 2023-10-07 11:15:14 +02:00
Folke Lemaitre e4ea874e33
fix(ft): fix ft handlers to properly use new events. Fixes #1084 2023-10-07 09:48:53 +02:00
Folke Lemaitre 6b37927be9
fix(event): prevent loading event handler more than once in some cases 2023-10-06 19:42:21 +02:00
Folke Lemaitre 2b2adb9d4d
fix(event): use tbl_contains instead of list_contains 2023-10-06 15:48:41 +02:00
Folke Lemaitre ef2a5d0bd1
fix(event): better dealing with even handlers. Fixes #788 2023-10-06 15:39:18 +02:00
Folke Lemaitre c42e63c198
feat(keys): you can now create buffer-local filetype keymaps by specifying `ft=`. Fixes #1076 2023-10-05 14:00:11 +02:00
Folke Lemaitre 24f6b6f1c7
fix: properly setup handlers when loading a plugin before startup (build) etc 2023-09-27 12:39:39 +02:00
Folke Lemaitre fd94e69ceb
fix(event): pass data to event lazy loaders. Fixes #922 2023-07-09 09:44:08 +02:00
Folke Lemaitre ae25448d39
Revert "fix(event): dont use autocmd pattern to detect event retriggering. Fixes #858"
This reverts commit bc89502357.
2023-06-06 15:06:24 +02:00
Folke Lemaitre bc89502357
fix(event): dont use autocmd pattern to detect event retriggering. Fixes #858 2023-06-06 14:29:38 +02:00
Folke Lemaitre d65a3d6755
fix(keys): replace term codes to calculate ids 2023-06-03 13:45:21 +02:00
Folke Lemaitre a758588008
fix(build): make sure to properly load handlers for plugins that were built during startup. Fixes #744 2023-04-24 07:54:21 +02:00
Folke Lemaitre b582fc5545
fix(cmd): show descriptive error when command was not found after loading its plugins 2023-04-18 10:17:22 +02:00
Folke Lemaitre 9f9d733df9
fix(keys): dont add (n) to keys id 2023-03-25 09:56:16 +01:00
Folke Lemaitre efe36bdfda
fix(cmd): properly deal with commands with nargs=? or nargs=1. Fixes #659 2023-03-16 23:54:09 +01:00
Folke Lemaitre 1657ae9b8c
fix(keys): set nowait for lazy keymaps when needed. Fixes #600 2023-02-27 09:59:47 +01:00
Folke Lemaitre 6a18404b7d
fix(keys): fixed keys types. rhs can be `false` 2023-02-14 12:19:49 +01:00
Yahir Eduardo Bravo Tafur a147110390
fix(cmd): fix Error when trigger on range defined command that doesn't support count (#519) 2023-02-09 18:02:40 +01:00
Folke Lemaitre c734d941b4
fix(keys): feed keys instead of returning expr for Neovim 0.8.x. Fixes #511 2023-02-08 16:00:56 +01:00
Folke Lemaitre ddaffa0715
fix(keys): replace keycodes manually 2023-02-08 09:33:38 +01:00
MurdeRM3L0DY 4272d2100a
fix(keys): refactor retrigger mechanism (#428)
* fix keymap retrigger in operator mode

* remove unnecessary retrigger logic

we can just eval `"<Ignore>" .. lhs` to retrigger the mapping

* remove unused function

---------

Co-authored-by: MurdeRM3L0DY <>
2023-02-08 00:45:28 +01:00
Folke Lemaitre 3c29f196f4
feat(cmd): use cmd table instead of trying to create the cmd string. Fixes #472 2023-02-07 20:57:00 +01:00
Folke Lemaitre 870af80c68
feat(spec): overriding keys with an rhs of `false` will remove the key instead 2023-01-16 21:27:55 +01:00
Folke Lemaitre fdf0332fe1
feat(keys): allow overriding a keys value to `vim.NIL` to not add the key 2023-01-16 10:16:35 +01:00
Folke Lemaitre 74bc61ab97
fix(handlers): allow overriding handler values 2023-01-11 13:44:09 +01:00
Tsakiris Tryfon 3bde7b5ba8
fix(keys): Use vim's default value for an unset g:mapleader (#316) 2023-01-04 14:02:48 +01:00
Folke Lemaitre 6d46a3028d
style(keys): remove debug output 2023-01-04 09:22:52 +01:00
Folke Lemaitre 507b695753
fix(keys): only replace localleader and maplocalleader. Fixes #307, fixes #308 2023-01-04 07:54:45 +01:00
Folke Lemaitre e93f50fd1b
fix(keys): operator pending mode 2023-01-03 16:16:49 +01:00
Folke Lemaitre 2e3e65b0f7
fix(keys): operator 2023-01-03 11:17:37 +01:00
Folke Lemaitre cdb998c6fe
fix(keys): make operator pending mode work. Fixes #286 2023-01-03 11:16:15 +01:00
Folke Lemaitre 46997de1c9
feat(event): track event trigger times 2023-01-02 11:26:54 +01:00
Folke Lemaitre 4d77cf2efe
fix(handler): properly show errors generated by setting up handlers 2023-01-02 09:36:52 +01:00
Folke Lemaitre a834b30c70
fix(keys): forward `count` to keymaps. Fixes #252 2022-12-30 20:51:18 +01:00
Folke Lemaitre c7c1295c3e
fix: only show fired ft events in debug obvioulsy. Fixes #232 2022-12-29 18:06:40 +01:00
Folke Lemaitre a2eac68575
fix(cmd): fixed signature of cmd._del. Fixes #229 2022-12-29 17:32:54 +01:00
Folke Lemaitre 7de662d037
fix(ft): only trigger filetypepluing and filetypeindent for ft handler. Fixes #228 2022-12-29 17:26:38 +01:00
Folke Lemaitre 5618076a45
fix(ft): always trigger FileType when lazy-loading on ft 2022-12-27 08:57:49 +01:00
Folke Lemaitre 46280a191b
fix(keys): don't escape pendig keys twice and only convert when number 2022-12-26 15:55:40 +01:00
Folke Lemaitre 9837d5be7e
fix(keys): only delete key handler mappings once 2022-12-25 16:17:50 +01:00
Folke Lemaitre 3f60f2dc13
fix(keys): key handlers were not working after reload 2022-12-22 21:58:19 +01:00
Folke Lemaitre b440b3ac2d
fix(keys): don't create with remap! 2022-12-22 21:07:24 +01:00
Folke Lemaitre 72b38999bc
fix(keys): dont delete handlers manually. Let loader do that 2022-12-22 18:53:19 +01:00
Folke Lemaitre 08d458c5ba
fix: remove debug print 2022-12-22 18:50:31 +01:00
Folke Lemaitre 56890ce5f4
fix: remove lazy keymaps with the correct mode. Fixes #97 2022-12-22 17:49:32 +01:00
Folke Lemaitre c0c2e1bd68
fix(cmd): allow ranges. Fixes #93 2022-12-22 10:37:02 +01:00