Commit Graph

140 Commits

Author SHA1 Message Date
Iron-E
68927a3b11
feat(Mode): self:switch 2024-03-11 14:29:21 -04:00
Iron-E
e1eb0035dc
feat(libmodal): do self:exit() inside callback 2024-03-08 15:24:39 -05:00
Iron-E
b4ca6af5d6
fix(Mode): adapt to changes in timeoutlen 2024-03-08 15:01:14 -05:00
Iron-E
3966014dbc
fix(Mode): cursor position doesn't update because of getchar (#27)
The solution here has been to use `vim.highlight.range` and hide the
real cursor.

SEE neovim/neovim#20793
2024-03-08 14:16:59 +00:00
vE5li
45577b6e19
fix: check for escaped keys and handle them correctly (#23)
Original author is @vE5li. The commit was resigned in order to be
merged upstream.
2023-09-19 16:24:42 +00:00
Iron-E
875636e91e
ref(Help): use Statement for vimscript commands 2023-04-28 17:07:52 -04:00
Iron-E
76f24a7456
fix(Help): remove debug code 2023-04-28 17:05:29 -04:00
Iron-E
1f402f9c65
fix(Help): attempt to get strwidth of function
CLOSES #21
2023-04-28 17:01:57 -04:00
Iron-E
1cf0232281
fix(Layer): abort restore_map if error occured 2023-03-17 15:12:13 -04:00
Iron-E
6d8aefa5e6
ref: remove useless directory nesting 2023-03-17 15:10:03 -04:00
Iron-E
0822846209
docs: class namespaces follow directories 2023-03-17 14:58:28 -04:00
Frank O'Brien
e3a4b66027
extracted functionality for removing mapping from existing mapping to new function, used this function on exit instead of :unmap 2023-03-17 11:11:44 -07:00
Iron-E
617022d48c
feat(Help): highlight types with nvim_echo 2023-03-12 21:22:09 -04:00
Iron-E
8c164b811d
perf: general improvements
I forgot to break it up into individual commits, and I ain't going
backwards now.
2023-03-12 19:26:38 -04:00
Iron-E
e535c17e84
ref(Layer): future-proof pruning of nvim_get_keymap dict 2023-02-22 16:01:23 -05:00
Iron-E
4ac30e0104
fix(Popup): width wrong when first opening 2023-02-20 15:10:04 -05:00
Iron-E
43073dbd7e
fix(Layer): unmap after enter 2023-02-20 14:56:34 -05:00
Iron-E
a7dbc7b76e
fix(Layer): unmap before entering layer
It didn't work before because the layer would still apply the "unmapped"
LHS when entering.
2023-02-20 14:52:41 -05:00
Iron-E
72f45f9187
fix(Layer): checks for if layer is active
The `existing_keymaps_by_mode` table is _always_ initialized, so that
was a red herring.
2023-02-20 14:52:17 -05:00
Iron-E
34b94a246d
perf(Mode): remove InputBytes class 2023-02-20 14:46:42 -05:00
Iron-E
69beec5e8e
feat(Mode): adapt to showmode option 2023-02-20 14:19:20 -05:00
Iron-E
ba75e9b4d3
ref: make workspace diagnostics more accurate 2023-02-20 14:19:07 -05:00
Iron-E
b52a440f38
fix(Mode): nvim_get_mode returns a table 2023-02-17 18:35:56 -05:00
Iron-E
ac93fed590
perf(Mode): vim.fn.mode() -> vim.api.nvim_get_mode() 2023-02-17 17:38:00 -05:00
Iron-E
caf4bad7f8
ref(Mode): use ModeChanged instead of custom event 2023-02-17 15:28:48 -05:00
Iron-E
0eb4afcc5b
ref: workspace diagnostics 2023-02-17 14:45:39 -05:00
Iron-E
2eb180827b
Merge branch 'master' of https://github.com/Iron-E/nvim-libmodal 2023-02-17 13:13:04 -05:00
Iron-E
c6002ebda9
docs: update 2023-02-17 13:12:37 -05:00
Iron-E
1a30555e73
feat(Mode): custom User events 2023-02-17 13:01:40 -05:00
spike
c5807eba0d fix error: invalid key lhsraw when restoring maps 2022-09-14 16:01:47 +02:00
Iron-E
4fd0e809e4
docs(classes): allow passing nil to new 2022-09-01 17:48:24 -04:00
Iron-E
d02697c6dc
fix(Layer): typo 2022-05-18 11:55:39 -04:00
Iron-E
4a31e56e63
ref(Layer): move replace_termcodes to utils.api
It is a utility function for an API function, so it belongs here.
2022-05-18 11:51:17 -04:00
Iron-E
6909e1a2cd
fix(Layer): mis-scheduling 2022-05-18 11:48:33 -04:00
Iron-E
a696aecf1c
fix(Layer): nvim failing to set keymap 2022-05-17 01:16:25 -04:00
Iron-E
0786a9fa45
ref(Layer): prefer rhs to callback 2022-05-17 01:16:03 -04:00
Iron-E
a898124d3b
fix(Layer): standardize lhs before un/map 2022-05-17 00:29:01 -04:00
Iron-E
5c66d7622a
ref(Layer): utils.notify_error for unmapping errors 2022-05-16 23:53:40 -04:00
Iron-E
f61d56f221
fix(utils): don't shadow builtin error 2022-05-16 23:53:25 -04:00
Iron-E
f8c93ec6d8
feat(Layer): Layer:is_active 2022-05-16 23:52:59 -04:00
Iron-E
24115079ed
fix(Layer): :unmapping 2022-05-16 23:44:27 -04:00
Iron-E
21dfc73142
style(Layer): make long line multiple lines 2022-05-16 23:29:57 -04:00
Iron-E
9665b84daf
fix(Layer): nil rhs from {callback = function} 2022-05-16 23:16:30 -04:00
Iron-E
853a180365
ref(Layer): allow :unmap before :enter 2022-05-16 22:46:13 -04:00
Iron-E
c0898e6067
docs(Layer): use proper name of field 2022-05-16 22:44:22 -04:00
Iron-E
4b84c1be46
ref(Layer): use vim.notify instead of error 2022-05-16 22:33:59 -04:00
Iron-E
49246bac2e
fix(Layer): buffer = 0 in mapping 2022-05-16 17:05:32 -04:00
Iron-E
31a79a8f54
ref(Layer): use vim.notify 2022-05-16 15:32:44 -04:00
Iron-E
944eb0c262
fix(Layer): correctly prevent error from printing 2022-05-16 15:28:29 -04:00
Iron-E
84eaaae9ab
chore(Layer): remove unused function 2022-05-16 15:28:22 -04:00