aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/util.lua
Commit message (Collapse)AuthorAgeFilesLines
* revert: "refactor!: make available_servers function private" #3589dundargoc2025-01-271-1/+2
| | | | | | | | This reverts commit e118ce58dab72c17216292eef7df4cee3cf60885. It turns out `util.available_servers` is used more than anticipated, so we revert the privatization for the time being. Closes https://github.com/neovim/nvim-lspconfig/issues/3588
* refactor!: make available_servers function privatedundargoc2025-01-211-1/+1
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: comment util.path.is_descendant to prepare deperecation in futuredundargoc2025-01-191-53/+47
| | | | | | | | We don't deprecate it currently as the suggested replacement (vim.fs.relpath) isn't available on the minimum supported neovim version. Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor!: remove public interface of util.path.traverse_parentsdundargoc2024-12-231-1/+0
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: deprecate util.path.iterate_parentsdundargoc2024-12-221-19/+4
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: deprecate util.path.path_separatordundargoc2024-12-211-3/+3
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: deprecate util.path.joindundargoc2024-12-211-6/+6
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: fix luals warningsv1.2.0dundargoc2024-12-191-12/+19
|
* refactor!: remove util.path.is_absolutedundargoc2024-12-141-11/+0
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor!: remove util.path.escape_wildcardsdundargoc2024-12-141-6/+5
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: deprecate util.find_git_ancestordundargoc2024-12-141-10/+5
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* docs: how to get package.json parent dir #3506Guilherme Soares2024-12-131-3/+3
|
* fix(regression): fix for vim.fs.find regression not returning parent ↵Jacob Reed2024-12-131-4/+4
| | | | directory (#3505)
* refactor: deprecate util.find_package_json_ancestordundargoc2024-12-131-10/+6
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: deprecate util.find_node_modules_ancestordundargoc2024-12-081-8/+5
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* Revert "refactor: use simpler file existence check" #3495Justin M. Keyes2024-12-061-4/+4
| | | | | This reverts commit 90c1c6cc822b1836209514c096069b9bbeab63d9. Fix #3485
* refactor: replace all instances of vim.uv with vim.loopdundargoc2024-12-021-6/+5
| | | | | We still support neovim 0.9 currently, so we can't use vim.uv. Also add a check so we don't accidentally reintroduce it.
* refactor: use simpler file existence checkdundargoc2024-12-011-4/+4
| | | | | The vimscript function `getftype` is an easier way to check for file existence compared to vim.uv.
* fix: return string instead of table for find_mercurial_ancestordundargoc2024-11-301-2/+2
|
* refactor: deprecate util.find_mercurial_ancestordundargoc2024-11-291-9/+5
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: deprecate util.path.is_dir #3475dundargoc2024-11-281-11/+10
| | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079
* refactor: deprecate util.path.is_file #3474dundargoc2024-11-281-10/+11
|
* refactor: deprecate `util.path.exists`dundargoc2024-11-271-14/+18
| | | | | | Use `vim.uv.fs_stat` instead. Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: group deprecated functions at the enddundargoc2024-11-271-12/+6
| | | | This makes it easier to assess how much functionality still needs to be deprecated.
* refactor: remove internal implementation of `util.path.sanitize` #3464dundargoc2024-11-261-7/+2
| | | Return value from `vim.fs.normalize` instead.
* ci: check for deprecated util functions #3462Justin M. Keyes2024-11-261-3/+1
|
* refactor: remove implementation of util.path.dirname #3460dundargoc2024-11-261-16/+3
| | | Instead, just return the result of vim.fs.dirname.
* refactor: remove unnecessary codedundargoc2024-10-051-1/+0
|
* fix(health): support Nvim 0.9Justin M. Keyes2024-10-021-8/+8
| | | | fix #3342
* refactor: replace deprecated vim.loop with vim.uvdundargoc2024-10-021-1/+1
|
* feat: do not process commands if it's func type (#3200)Jeong, Heon2024-07-011-4/+6
| | | To pass it as-is to the vim.lsp.start_client argument
* fix(util): check neovim nightly 0.11 version (#3173)glepnir2024-05-231-3/+3
|
* refactor: move all old get_clients to new compatible (#3159)glepnir2024-05-171-3/+3
|
* fix: use new version as check condition (#3157)glepnir2024-05-171-3/+3
|
* refactor: add compatible tbl_flatten and lsp_get_clients for new version ↵glepnir2024-05-171-4/+14
| | | | 0.10 (#3154)
* refactor: general cleanupLewis Russell2024-03-071-3/+16
|
* fix: util.root_pattern prioritises pattern order (#2885)Emilio Ziniades2023-11-181-8/+11
| | | | | | | | | | | | * fix: util.root_pattern prioritises pattern order Instead of traversing the filesystem upwards once and returning the first match of all the patterns, it traverses the filesystem upwards once for each pattern. This means that the order of the patterns provided matters, and the highest priority patterns should be put first. Also updated corresponding tests. * docs: update util.root_pattern description
* fix: lsprestart command faild (#2779)Raphael2023-08-231-2/+1
|
* refactor: move async_run_command()Lewis Russell2023-08-221-34/+0
|
* refactor: move manager to separate moduleLewis Russell2023-08-221-185/+6
| | | | | | - Move manager logic to own module - Move async logic to own module - Improve type annotations
* perf(gopls): make get go mod cache path async (#2673)Raphael2023-06-181-0/+34
|
* fix: check root already in workspace (#2590)Raphael2023-05-071-47/+38
| | | | | | * fix: check root already in workspace --------- Co-authored-by: github-actions <github-actions@github.com>
* fix(eslint): get root patterns by given path (#2556)Raphael2023-04-121-3/+4
|
* fix: register workspace before attaching to buffer (#2525)kylo2522023-03-241-1/+1
|
* fix(util): update `is_windows` detection (#2492)Wuelner Martínez2023-03-051-1/+1
| | | | | Fixes https://github.com/neovim/nvim-lspconfig/commit/641a71e381e23f1d1d6a0722a8b796fda896b55b#commitcomment-102642580 Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com>
* fix: eslint errors on start (regression) (#2452)Jose Veiga2023-02-121-1/+2
|
* fix(stylelint_lsp): update root directory pattern (#2447)Wuelner Martínez2023-02-121-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix(stylelint_lsp): update root directory pattern Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> * feat(util): add `add_package_json_to_config_files_if_field_exists` function Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> * fix(stylelint_lsp): update update root directory pattern implementation Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> * fix(eslint): update update root directory pattern implementation Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> * fix(util): update `is_windows` detection Co-authored-by: Raphael <glephunter@gmail.com> * fix(util): update new function name Co-authored-by: Raphael <glephunter@gmail.com> * fix(server_configurations): update new function name implementation Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> * fix(stylelint_lsp): fix duplicate equals Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> --------- Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> Co-authored-by: Raphael <glephunter@gmail.com>
* fix: check client when get client from cache (#2429)Raphael2023-01-311-2/+2
|
* fix: check server support workspacefolders (#2418)Raphael2023-01-271-79/+100
| | | | | | | add server workspaceFolder check, if server not have workspacefolders.supported field will spawn a new server instance. https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_workspaceFolders
* refactor: rewrite client reuse logic (#2371)Raphael2022-12-301-37/+28
| | | | | * refactor: rewrite client reuse logic * fix: not register workspace after new start