Closed willothy closed 3 months ago
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 Util.islist
back since that was still used and needed for older NEovim versions.
ty!
Also fixed that flatten usage. Didn't work...
Also fixed that flatten usage. Didn't work...
Hmm I'll have to look into that one then! Afaik the docs say that vim.iter(t):flatten()
should be able to replace vim.tbl_flatten
, but maybe there are some slight differences. Also maybe between versions as I've been using this branch for a bit with no issues.
Thanks for the merge and for all of your work :)
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