Commit Graph

76 Commits

Author SHA1 Message Date
Folke Lemaitre 17473db1d7
feat: add plugin name to handlers.managed 2024-07-11 22:04:06 +02:00
Folke Lemaitre 0f2786bcc9
feat(profiling): merge VeryLazy stats and show startuptime in profile view 2024-07-04 15:17:10 +02:00
Folke Lemaitre ff90417808
fix(keys): buffer-local nop mappings 2024-06-06 10:15:35 +02:00
Folke Lemaitre 3e4c795cec
fix(keys): never lazy-load `<nop>` or empty rhs keymaps 2024-06-06 09:28:35 +02:00
Folke Lemaitre 82cf974e09
fix(keys): properly deal with ft list for keys. Fixes #1448 2024-05-21 22:10:49 +02:00
Folke Lemaitre 39de11a2fa
fix(keys): properly re-create buffer-local mappings. Fixes #1448 2024-05-20 21:15:04 +02:00
Folke Lemaitre c96fc24555
style: format 2024-03-07 17:30:37 +01:00
Emilia Simmons d09084c4b1
fix(keys): fix abbreviation expansion on lazy load (#1219) 2024-01-21 11:40:46 +01:00
Folke Lemaitre a9b9a4b3a2
fix(keys): make sure we don't delete the global mapping when executing an ft keymap. See #1241 2024-01-21 11:10:29 +01:00
Folke Lemaitre 5757b551fc
fix(keys): allow global/local ft keymaps to exist at the same time. Fixes #1241 2024-01-20 14:11:32 +01:00
Folke Lemaitre c059eece0c
refactor: Handler.load => Handler.resolve 2023-10-17 17:43:37 +02:00
Folke Lemaitre 03419f3e5f
fix(cmd): shedule error message instead of showing directly 2023-10-17 16:52:32 +02:00
Folke Lemaitre 2f169e74d4
refactor(handlers): lazy resolving of plugin handlers (#1126)
* refactor(handlers): lazy resolving of plugin handlers

* test: fixed tests
2023-10-16 22:34:44 +02:00
Folke Lemaitre 1cfd6d1f36
fix(loader): don't load handlers before installing plugins 2023-10-16 15:05:16 +02:00
Folke Lemaitre 3b31897275
fix(cmd): lazy-cmds no longer show an error for buffer-local commands 2023-10-14 17:30:26 +02:00
Folke Lemaitre 99ee284739
fix(ui): use actual handler values for rendering plugin handlers 2023-10-11 14:25:12 +02:00
Folke Lemaitre b65d308662
feat(event): custom lazy event hook for distros 2023-10-11 14:25:12 +02:00
Folke Lemaitre 303a3ed6a8
feat(event): added support for structured events (see readme on event) 2023-10-11 14:25:12 +02:00
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