aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/util.lua
Commit message (Collapse)AuthorAgeFilesLines
* refactor: generalize insert_package_json() #3833Justin M. Keyes2025-05-101-28/+16
|
* feat(tailwindcss): add detection for Phoenix projects #3831David Bernheisel2025-05-091-0/+21
| | | | | | | | | | | | Enhance root directory detection for the latest versions of TailwindCSS v4, which no longer require tailwind.config.* or postcss.config.*. For Phoenix projects, they are typically generated or add Tailwind installed via https://github.com/phoenixframework/tailwind which will now be detected by scanning the mix.lock file for the included package. Phoenix projects that install tailwindcss via package.json should still work.
* fix(configs): eliminate some usages of root_pattern #3820Justin M. Keyes2025-05-041-0/+8
| | | | | | | Problem: `root_pattern` is not necessary for non-glob patterns. Solution: Replace non-glob cases with `vim.fs.root()`..
* fix: improve typescript server path search for ts-dependent lsp #3795Alexis Tacnet2025-04-281-0/+12
|
* feat(util): support "package.json5" #3794Mohamed Hubail2025-04-271-4/+3
| | | | | | | Problem: Root detection fails when using `package.json5`. #3710 Solution: Modify `insert_package_json` to support `package.json5`.
* refactor: deprecate util.validate_bufnr()Justin M. Keyes2025-04-231-14/+16
|
* refactor: deprecate util.path.search_ancestors()Justin M. Keyes2025-04-231-21/+22
|
* refactor: deprecate util functionsJustin M. Keyes2025-04-231-85/+90
|
* Revert "fix(util): improve wildcard escaping" #3729Justin M. Keyes2025-04-151-8/+1
| | | This reverts commit e39da6a820d2a700904117d29f0dd476d64262cf.
* fix(util): improve wildcard escaping #3690ryoppippi2025-04-141-1/+8
| | | | | | | | | | | The escape_wildcards function was enhanced to handle a broader range of special characters that could cause issues when used in pattern matching. This includes additional wildcards, pattern matching characters, shell special characters, the escape character itself, and whitespace. This change provides more robust path handling throughout the codebase when dealing with file paths that contain special characters. Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
* refactor: replace vim.loop with vim.uv #3703v2.0.0Chris Bandy2025-04-101-7/+7
| | | | | | The former is deprecated in neovim 0.10. Remove the check added in 9b89ba5f158f73779cd58d0bb2783dfb40b28b0e. See: https://github.com/neovim/neovim/blob/v0.10.0/runtime/doc/deprecated.txt#L55
* refactor: deprecate get_active_client_by_name #3697Justin M. Keyes2025-04-051-9/+8
|
* refactor: deprecate add_hook_before/after #3695Justin M. Keyes2025-04-051-24/+26
| | | | These are special-purpose functions that should never have been "public".
* refactor: deprecate util.get_lsp_clients #3694Justin M. Keyes2025-04-051-7/+10
|
* refactor: deprecate util functions #3691Justin M. Keyes2025-04-051-32/+34
| | | These are only used by the old health.lua, which only exists for Nvim 0.10 back-compat.
* 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)