Skip to content
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

0.10: remove use of deprecated API functions #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

willothy
Copy link

@willothy willothy commented Jun 2, 2024

Removes usage of several deprecated API functions, and changes all uses of vim.loop to vim.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 scope
  • api.nvim_win_set_option -> api.nvim_set_option_value with window-local scope
  • vim.tbl_flatten -> vim.iter(t):flatten():totable()
  • vim.loop.* -> vim.uv.*
  • vim.islist or vim.tbl_islist -> vim.islist

@willothy willothy changed the title refactor: remove use of deprecated API functions 0.10: remove use of deprecated API functions Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant