Commit Graph

115 Commits

Author SHA1 Message Date
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
Iron-E
117e31eccd
ref(Layer): use :map for :enter
`:map` can now handle buffer-locals, so we should just use that.
2022-05-16 15:28:22 -04:00
Iron-E
ff804a3e34
fix(Layer): handle mapping to new mode 2022-05-16 15:28:22 -04:00
Iron-E
0d009b0fcc
fix(Layer): normalize buffer = true|false 2022-05-16 15:26:33 -04:00
Iron-E
4cf98788a0
style(Layer): alphabetize functions 2022-05-16 14:25:46 -04:00
Iron-E
21aee625f3
fix(Layer): un/mapping from buffer 2022-05-16 14:25:46 -04:00
Iron-E
70c3585da3
docs(libmodal): add missing @class annotations
This should help the LSP reason about what is being imported
2022-05-08 23:44:39 -04:00
Iron-E
a81c06464b
ref(libmodal): make api func names more obvious 2022-05-08 22:28:46 -04:00
Iron-E
cf1bca1f8f
ref(libmodal): use vim.notify for errors
This allows for integration with `nvim-notify` and others.
2022-05-08 22:27:58 -04:00
Iron-E
55a0bcca00
docs: make comments conform in case 2022-04-26 11:33:37 -04:00
Iron-E
49a02ad692
merge!: cleanup the plugin
This was my first plugin. Looking back on it, it was full of bad
design decisions (and I have elected to keep most of the user-facing
ones for backwards-compatability). This merge tries to uncrustify the
plugin by standardizing the documentation, removing much unecessary
code, reorganizing the internal structures, and removing references to
my own made-up terminology.
2022-04-25 17:59:33 -04:00
Iron-E
0af6b6d168
chore(libmodal): remove checks for nvim 0.5
Since the plugin now requires Neovim 0.7, there's no reason to check
for Neovim 0.7
2022-04-20 13:49:52 -04:00
Iron-E
dfcc57dd49
chore(Prompt): remove unused function 2022-02-17 17:40:12 -05:00
Iron-E
1933c1d6dc
perf: use vim.ui instead of vim.fn 2022-02-17 17:40:11 -05:00
Iron-E
b4419002a2
perf: don't make local copies of global vim module 2021-09-08 15:05:28 -04:00
Iron-E
afdfadf365
ref: use Neovim 0.5
BREAKING CHANGE: now requires Neovim 0.5
2021-07-07 14:25:53 -04:00
Iron-E
a389bc6d4e
feat(Prompt): allow exit supression
Previously, we could set a `:h libmodal-exit-supression` flag in order
to stop the modes from automatically exiting upon an <Esc> press. This
commit adds this functionality to `Prompt`s so that the same may be done
for them.
2020-12-19 18:26:17 -05:00
Iron-E
afe38ffc20
fix(Popup): don't override open() options
The window options were overriding the passed in options. We shouldn't
do that.
2020-12-13 19:29:09 -05:00
Iron-E
81abfff50c
feat(Popup): allow override of default config
Before we did not allow the default config to be overridden, but now we
do.
2020-12-13 18:44:05 -05:00
Iron-E
932eb5cd78
ref(Popup): set Popup.window to nil after :close()
Before this commit, Popup.window would only be set to `nil` if there was
a valid window found. It is proposed that `nil` shuold be set especially
if there is no valid window found, as an invalid window value shouldn't
be kept around.
2020-11-29 17:06:19 -05:00
Iron-E
97f0ac7922
Document changes 2020-11-22 15:57:08 -05:00
Iron-E
d4e25db4c3
Address Popup errors when switching tabs 2020-11-22 15:50:53 -05:00
Iron-E
d00feb0ad3
Fix bug where empty string causes empty libmodal name 2020-11-18 15:56:16 -05:00
Iron-E
c9dd739eb0
Don't use buffer variable 2020-11-13 20:45:52 -05:00
Iron-E
f335c7c142
Statusline support 2020-11-13 19:59:50 -05:00
Iron-E
c570e3886c
Fix bad reference to vim.api 2020-09-10 14:34:52 -04:00