Commit Graph

220 Commits

Author SHA1 Message Date
Iron-E
421485f750
feat(libmodal): mode.switch
Wraps `Mode:switch` for convenience
2024-03-11 14:49:26 -04:00
Iron-E
e5fbe988a0
docs: Mode:switch 2024-03-11 14:49:20 -04:00
Iron-E
68927a3b11
feat(Mode): self:switch 2024-03-11 14:29:21 -04:00
Iron-E
d5307b2a16
docs(libmodal): fix broken example 2024-03-08 15:38:49 -05:00
Iron-E
911a59c9f0
style: .editorconfig 2024-03-08 15:29:01 -05:00
Iron-E
5a815badf3
docs: Mode:exit 2024-03-08 15:29:01 -05: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
6d85cb30e0
test(layer): can be used multiple times 2023-03-17 15:10:35 -04:00
Iron-E
51f7373f2b
chore: ignore LuaLS configuration 2023-03-17 15:10:03 -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
Iron-E
b3fc3b3621
docs(README): preventing breaking changes on lazy 2023-03-17 14:58:27 -04:00
Iron-E
ad39d8a0eb
Merge pull request #20 from itsFrank/make-layers-reusable
feat: make layers reusable
2023-03-17 18:57:09 +00: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
5c4685cab2
fix(examples): unset fooModeExit before first run 2023-03-12 21:21:44 -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
c8fce913e5
fix(examples): missing argument from layer:unmap() 2023-02-20 14:47:57 -05:00
Iron-E
83dc6c5433
style(examples): inline keymaps-submode instruction 2023-02-20 14:47:18 -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
fb06f151d2
docs(README): fix keycodes morphed into unicode 2023-02-18 23:09:15 -05:00
Iron-E
f9f9308d8d
docs(README): use spaces instead of tabs 2023-02-18 12:58:56 -05:00
Iron-E
63c5604bfa
docs(README): add heirline config 2023-02-18 12:58:33 -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
64b7f42670
docs(libmodal): update event listings 2023-02-17 15:34:43 -05:00
Iron-E
165d834f68
docs(README): use ModeChanged for lualine 2023-02-17 15:32:20 -05:00
Iron-E
caf4bad7f8
ref(Mode): use ModeChanged instead of custom event 2023-02-17 15:28:48 -05:00
Iron-E
767a25bf6e
docs(README): add lazy.nvim example 2023-02-17 15:04:34 -05:00
Iron-E
0eb4afcc5b
ref: workspace diagnostics 2023-02-17 14:45:39 -05:00
Iron-E
e5b47b3858
docs(README): freeze feline.nvim config 2023-02-17 14:16:17 -05:00
Iron-E
d8e1925ee3
docs(README): add staline.nvim 2023-02-17 14:12:03 -05:00
Iron-E
c518ca2bfc
docs(README): use nbsp 2023-02-17 13:37:39 -05:00
Iron-E
cef71cb13a
docs(README): indent a little bit 2023-02-17 13:36:24 -05:00
Iron-E
cf78e409d1
docs(README): don't indent lualine example 2023-02-17 13:35:31 -05:00
Iron-E
affbd180e0
docs(README): add lualine example 2023-02-17 13:34:42 -05:00