Commit graph

823 commits

Author SHA1 Message Date
Riccardo Mazzarini
fddfb8a0b0
fix: re-enable String's Drop impl 2025-08-19 12:27:32 +02:00
Riccardo Mazzarini
ad53c87108
Fix Buffer::get_name() (#262) 2025-08-19 12:22:32 +02:00
Riccardo Mazzarini
8e66ecb5c1
chore: update mlua and cargo_metadata
Some checks failed
ci / test (--features neovim-0-11, v0.11.1, ubuntu-latest) (push) Has been cancelled
ci / test (--features neovim-0-11, v0.11.1, windows-latest) (push) Has been cancelled
ci / test (--features neovim-0-11, v0.11.1, macos-latest) (push) Has been cancelled
ci / test (--features neovim-0-10, v0.10.4, macos-latest) (push) Has been cancelled
ci / test (--features neovim-0-10, v0.10.4, ubuntu-latest) (push) Has been cancelled
ci / test (--features neovim-0-10, v0.10.4, windows-latest) (push) Has been cancelled
ci / test (--features neovim-nightly, Nightly, macos-latest) (push) Has been cancelled
ci / test (--features neovim-nightly, Nightly, ubuntu-latest) (push) Has been cancelled
ci / test (--features neovim-nightly, Nightly, windows-latest) (push) Has been cancelled
ci / clippy (push) Has been cancelled
ci / docs (push) Has been cancelled
ci / format (push) Has been cancelled
2025-08-15 18:44:47 +02:00
Riccardo Mazzarini
d3cda7ee7c
chore: bump MSRV to 1.86 2025-08-15 18:44:47 +02:00
Riccardo Mazzarini
5ee2096e70
fix(api): allow Buffer::get_extmarks() to get extmarks from all namespaces (#256) 2025-06-16 16:36:35 +02:00
Riccardo Mazzarini
3bbb551c0f
chore: fix CI badge link in README 2025-06-08 11:42:39 +02:00
Riccardo Mazzarini
30242cd166
fix(api): make KeymapInfos::buffer an Option<Buffer> (#255) 2025-06-08 11:41:09 +02:00
Riccardo Mazzarini
92031aa2b4
fix(tests): re-emit a failing test's stderr (#254) 2025-06-03 01:35:55 +02:00
Riccardo Mazzarini
ac38bb32db
fix: fix definition of DecorationProviderOpts (#253) 2025-06-01 02:05:23 +02:00
Riccardo Mazzarini
5057f0ab05
chore: remove the __vendored_luajit dependency, enable mlua/vendored by default (#252) 2025-05-31 21:27:51 +02:00
Riccardo Mazzarini
1674fdc36b
ci: where possible, run jobs with MSRV (#251) 2025-05-29 15:44:32 +02:00
Riccardo Mazzarini
dfdfe59d9d
fix: specify precise capture semantics (#248) 2025-05-23 18:17:59 +02:00
Riccardo Mazzarini
1f10c8fac2
refactor: make api::get_mode() infallible (#247) 2025-05-23 18:09:49 +02:00
Riccardo Mazzarini
d027f99643
chore: fix deps' paths 2025-05-23 17:52:43 +02:00
Riccardo Mazzarini
a205e0603e
Release v0.6.0 2025-05-23 17:45:07 +02:00
Riccardo Mazzarini
3d3e8d4acc
Port to edition 2024 (#246) 2025-05-23 17:42:12 +02:00
Riccardo Mazzarini
68cfa21584
feat: add a hidden _cmdline_offset field to WindowOpts on Nightly (#245)
Upstream:
08c484f2ca
2025-05-23 17:09:42 +02:00
Riccardo Mazzarini
02f26cbcde
feat: add a max_height field to WinTextHeightOpts on Nightly (#244)
Upstream:
7ba043f0f3
2025-05-23 17:02:05 +02:00
Riccardo Mazzarini
dbcbce2216
Add a neovim-0-11 feature (#243) 2025-05-23 16:56:20 +02:00
Riccardo Mazzarini
c2d1da63fb
Drop support for Neovim v0.9.* (#242) 2025-05-23 16:34:49 +02:00
Riccardo Mazzarini
644381600b
feat: implement TryFrom<Object> for Dictionary 2025-05-23 15:50:47 +02:00
Riccardo Mazzarini
049aedbfc5
fix: deserialize GotMode::mode as a ModeStr instead of Mode (#241)
Closes #227.
2025-05-23 15:36:50 +02:00
Riccardo Mazzarini
e9bb99794a
feat: implement TryFrom<Object> for NvimString 2025-05-23 15:14:18 +02:00
Riccardo Mazzarini
75e4b36478
fix: fix signature of feedkeys() (#240)
Closes https://github.com/noib3/nvim-oxi/issues/225
2025-05-23 13:20:17 +02:00
Riccardo Mazzarini
3a22a7fba5
feat: implement From<&CStr> for NvimStr (#239) 2025-05-23 12:36:57 +02:00
Riccardo Mazzarini
162e56f4a3
refactor: make NvimStr's data pointer *const (#238)
Both `String` and `NvimStr` are immutable, so this is more
semantically correct.
2025-05-23 12:23:17 +02:00
Riccardo Mazzarini
04c698f13d
Add NvimStr (#237) 2025-05-23 11:52:29 +02:00
Riccardo Mazzarini
bac13dfcb1
feat: add conversions from tuples of TryFrom<Object> to Array/Object (#236) 2025-05-22 19:20:26 +02:00
Riccardo Mazzarini
80caa4cda4
refactor: make TestTerminator::terminate() take &self (#235) 2025-05-22 15:00:51 +02:00
Riccardo Mazzarini
f60b78ee7b
macros(test): avoid allocating new TokenStream to represent attrs 2025-05-20 00:40:26 +02:00
Riccardo Mazzarini
494a1c777f
test: trim Neovim's stderr before emitting it as an error 2025-05-18 23:33:35 +02:00
Riccardo Mazzarini
169c657838
Rerun the test build script if the library artifact is changed (#233) 2025-05-18 02:03:46 +02:00
Riccardo Mazzarini
d7334112a0
Fix Clippy 2025-04-25 22:16:13 +02:00
Ricardo Kullock
f1e01d0fa1
Allow plugins to be required more than once without crashing Neovim (#230) 2025-04-03 01:02:38 +02:00
Riccardo Mazzarini
dc13af07e2
Fix Deserialize impl of WindowTitle::ListOfText (#228) 2025-03-20 00:23:11 +01:00
Riccardo Mazzarini
6e74954b31
Fix Clippy 2025-03-19 16:45:03 +01:00
Riccardo Mazzarini
0424a1ad26
Filter out nil objects when inserting in Arrays and Dictionarys 2025-03-19 16:44:30 +01:00
Riccardo Mazzarini
b70748c56e
Tweak Object::nil()'s Debug impl 2025-03-19 16:31:26 +01:00
Riccardo Mazzarini
d5abca0582
tests: remove leading and trailing quotes when comparing terminal names (#224) 2025-03-16 01:45:59 +01:00
MarcusGrass
6a2483cb4d
Bind to nvim_win_set_hl_ns instead of nvim_win_set_hl (#220) 2025-03-05 10:54:23 +01:00
Riccardo Mazzarini
f751ef4324
Fix Nightly (#219) 2025-03-05 00:35:32 +01:00
MarcusGrass
6f5f735099
fix: Use platform specific c_char in malloc cast (#221) 2025-03-04 19:46:24 +08:00
Riccardo Mazzarini
b81c00d281
Add a channel_id parameter to nvim_input on Nightly (#216) 2025-02-12 17:22:15 +01:00
Riccardo Mazzarini
40ecec656a
Fix Nightly (#214)
Tracks https://github.com/neovim/neovim/pull/32098
2025-01-24 13:17:02 +08:00
Riccardo Mazzarini
8999e511d3
Add more methods on Array and Dictionary (#212) 2025-01-03 19:08:10 +08:00
Tayfun Bocek
f5f8fb52f1
Cleanup StringBuilder methods (#211)
Co-authored-by: Riccardo Mazzarini <me@noib3.dev>
2025-01-02 23:11:23 +08:00
Riccardo Mazzarini
b8393d9a33
Add more methods on Object to access underlying values (#210) 2024-12-31 01:27:01 +08:00
Riccardo Mazzarini
a72ad38339
Fix nvim_oxi::api::notify() (#208)
* Remove `mlua` from the `dev-dependencies`

* Test `api::notify()`

* Fix `api::notify()`'s API

* Test `api::notify()` w/ custom provider

* Add an `Arena` argument to `nvim_notify` on 0.10 and Nightly

* Directly implement `Error` for `types::Error`

* Test that errors returned by `vim.notify` are propagated

* Fix using `mlua` in CI

* Don't test `notify_custom{_err}` on `v0.9.5` on macOS and Windows
2024-12-27 03:28:46 +08:00
Riccardo Mazzarini
61cc490370
Merge pull request #206 from noib3/allow-should-panic-in-tests
Add support for `#[should_panic]` in tests
2024-12-22 16:34:48 +08:00
Riccardo Mazzarini
5a34783a35
feat(macros): add support for #[should_panic] in tests 2024-12-22 16:32:45 +08:00