-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
shrink util
implementation by using upstream functions, avoid util
in configs
#2079
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
We don't necessarily need to remove |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Plan
we should keep the util stuff around to avoid breaking downstream. meanwhile, in this repo:
once we have isolated most of |
Since we don't actually test/run any of the lua configs in CI to my knowledge, the best we can hope for is to make a string search of changed lines on PRs and complain if the deprecated function is used. |
The "Proposal" in the main description of this issue is updated and correct. To be clear:
For example, nvim-lspconfig/lua/lspconfig/util.lua Line 248 in 39f31e1
|
utils
with upstream functionsutil
implementation by using upstream functions, avoid util
in configs
Functions to deprecate
path
search_ancestors
root_pattern
find_git_ancestors
find_mercurial_ancestors
find_node_modules_ancestors
find_package_json_ancestors
All of the above can be replaced with relevant functions from
vim.fs
module.parse_user_command_options
create_module_commands
Both of these functions can be made private in the next releases seeing as
user_commands
part has already been signaled for eventual deprecation.Proposal
nvim 0.8
+ stabilization period.vim.fs
moduleconfigs/[server].lua
wherever relevantutil
functions that have an alternative in the minimum supported Nvim.The text was updated successfully, but these errors were encountered: