-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deprecation): remove use of deprecated API functions #59
Conversation
9f4064d
to
bb0bb02
Compare
This PR is stale because it has been open 60 days with no activity. |
Fixed it to work on version < 0.10.0 and added ty! |
Also fixed that flatten usage. Didn't work... |
Hmm I'll have to look into that one then! Afaik the docs say that Thanks for the merge and for all of your work :) |
🤖 I have created a release *beep* *boop* --- ## [1.3.0](v1.2.2...v1.3.0) (2024-07-07) ### Features * added support for ruff_lsp. Fixes [#45](#45) ([a198a8c](a198a8c)) * **util:** util.pick_root_dir ([197c17a](197c17a)) ### Bug Fixes * **build:** fix schema generation issues ([#63](#63)) ([45484f5](45484f5)), closes [#52](#52) [#60](#60) * **commands:** checkhealth. Fixes [#29](#29) ([245bb87](245bb87)) * deprecation warnings on 0.11 ([c6e2d96](c6e2d96)) * **deprecation:** remove use of deprecated API functions ([#59](#59)) ([983a93b](983a93b)) * flatten ([cdbd1f2](cdbd1f2)) * **health:** remove deprecated API warnings ([#28](#28)) ([9625a17](9625a17)) * **health:** remove nvim-treesitter dependency ([#44](#44)) ([3374276](3374276)) * **json:** set `null` values to `nil` ([2f131d0](2f131d0)) * **lspconfig:** dont deepcopy the full config. Do settings only ([37a7205](37a7205)) * normalize paths. Fixes [#33](#33) ([e0835bd](e0835bd)) * remove nickel_ls ([ca5246f](ca5246f)) * **util:** check that root_dir exists. Fixes [#56](#56). Closes [#51](#51) ([f9dcd17](f9dcd17)) * **util:** normalize paths returned by `Util.file_patterns` ([#35](#35)) ([7c34c86](7c34c86)) * **volar:** volar schema ([#64](#64)) ([4274159](4274159)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Removes usage of several deprecated API functions, and changes all uses of
vim.loop
tovim.uv
.Now that 0.10 is released, several functions used here have been deprecated and show warnings when they're first called.
I've updated:
lsp.get_active_clients()
->lsp.get_clients()
api.nvim_buf_set_option
->api.nvim_set_option_value
with buf-local scopeapi.nvim_win_set_option
->api.nvim_set_option_value
with window-local scopevim.tbl_flatten
->vim.iter(t):flatten():totable()
vim.loop.*
->vim.uv.*
vim.islist or vim.tbl_islist
->vim.islist