David
53140ef031
fix(util): root_markers_with_field should not match directories #4219
2025-11-27 09:58:49 -08:00
Pete Coleman
fc253c0e27
fix(utils): normalize root_pattern result #4093
2025-09-23 11:56:16 -07:00
Justin M. Keyes
c671605ad0
refactor: generalize insert_package_json() #3833
2025-05-10 07:42:35 -07:00
David Bernheisel
af4a9f5ce5
feat(tailwindcss): add detection for Phoenix projects #3831
...
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.
2025-05-09 17:44:12 -07:00
Justin M. Keyes
2a6517453f
fix(configs): eliminate some usages of root_pattern #3820
...
Problem:
`root_pattern` is not necessary for non-glob patterns.
Solution:
Replace non-glob cases with `vim.fs.root()`..
2025-05-04 14:11:18 -07:00
Alexis Tacnet
9c6bbb5d11
fix: improve typescript server path search for ts-dependent lsp #3795
2025-04-28 05:11:00 -07:00
Mohamed Hubail
641e567f97
feat(util): support "package.json5" #3794
...
Problem:
Root detection fails when using `package.json5`. #3710
Solution:
Modify `insert_package_json` to support `package.json5`.
2025-04-27 07:13:04 -07:00
Justin M. Keyes
af34737b3a
refactor: deprecate util.validate_bufnr()
2025-04-23 06:50:22 -07:00
Justin M. Keyes
79c12bc6e7
refactor: deprecate util.path.search_ancestors()
2025-04-23 15:08:14 +02:00
Justin M. Keyes
ae74b95c98
refactor: deprecate util functions
2025-04-23 14:16:00 +02:00
Justin M. Keyes
bb7833d1be
Revert "fix(util): improve wildcard escaping" #3729
...
This reverts commit e39da6a820d2a700904117d29f0dd476d64262cf.
2025-04-15 07:15:25 -07:00
ryoppippi
e39da6a820
fix(util): improve wildcard escaping #3690
...
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>
2025-04-14 07:58:53 -07:00
Chris Bandy
4ea9083b6d
refactor: replace vim.loop with vim.uv #3703
...
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
2025-04-10 15:48:31 -07:00
Justin M. Keyes
96cfcfde42
refactor: deprecate get_active_client_by_name #3697
2025-04-05 17:17:35 -07:00
Justin M. Keyes
462ded6ee3
refactor: deprecate add_hook_before/after #3695
...
These are special-purpose functions that should never have been
"public".
2025-04-05 16:36:39 -07:00
Justin M. Keyes
3dbc4a61e5
refactor: deprecate util.get_lsp_clients #3694
2025-04-05 16:29:56 -07:00
Justin M. Keyes
52d857c603
refactor: deprecate util functions #3691
...
These are only used by the old health.lua, which only exists for Nvim 0.10 back-compat.
2025-04-05 15:49:12 -07:00
dundargoc
1f941b3668
revert: "refactor!: make available_servers function private" #3589
...
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
2025-01-27 13:04:47 -08:00
dundargoc
e118ce58da
refactor!: make available_servers function private
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2025-01-21 06:21:29 +01:00
dundargoc
9ee2e7dac2
refactor: comment util.path.is_descendant to prepare deperecation in future
...
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 .
2025-01-19 22:09:13 +01:00
dundargoc
c580f34bc5
refactor!: remove public interface of util.path.traverse_parents
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2024-12-23 14:06:42 +01:00
dundargoc
9204642002
refactor: deprecate util.path.iterate_parents
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2024-12-22 14:44:02 +01:00
dundargoc
f1405c1ea5
refactor: deprecate util.path.path_separator
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2024-12-21 18:15:15 +01:00
dundargoc
45c5095097
refactor: deprecate util.path.join
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2024-12-21 16:10:35 +01:00
dundargoc
040001d85e
refactor: fix luals warnings
2024-12-19 11:33:57 +01:00
dundargoc
c502e4d288
refactor!: remove util.path.is_absolute
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2024-12-14 23:58:22 +01:00
dundargoc
3da1815079
refactor!: remove util.path.escape_wildcards
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2024-12-14 21:51:16 +01:00
dundargoc
12d163c5c2
refactor: deprecate util.find_git_ancestor
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2024-12-14 17:24:12 +01:00
Guilherme Soares
3cb6c05779
docs: how to get package.json parent dir #3506
2024-12-13 16:06:28 -08:00
Jacob Reed
4761665b4b
fix(regression): fix for vim.fs.find regression not returning parent directory ( #3505 )
2024-12-13 20:30:45 +01:00
dundargoc
f675f8c430
refactor: deprecate util.find_package_json_ancestor
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2024-12-13 14:31:20 +01:00
dundargoc
19626a3a44
refactor: deprecate util.find_node_modules_ancestor
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2024-12-08 18:32:42 +01:00
Justin M. Keyes
64073cbed0
Revert "refactor: use simpler file existence check" #3495
...
This reverts commit 90c1c6cc822b1836209514c096069b9bbeab63d9.
Fix #3485
2024-12-06 03:19:39 -08:00
dundargoc
9b89ba5f15
refactor: replace all instances of vim.uv with vim.loop
...
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.
2024-12-02 11:12:18 +01:00
dundargoc
90c1c6cc82
refactor: use simpler file existence check
...
The vimscript function `getftype` is an easier way to check for file
existence compared to vim.uv.
2024-12-01 15:11:38 +01:00
dundargoc
7b0a2f6b14
fix: return string instead of table for find_mercurial_ancestor
2024-11-30 14:07:10 +01:00
dundargoc
e869c7e6af
refactor: deprecate util.find_mercurial_ancestor
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2024-11-29 12:17:35 +01:00
dundargoc
6a5ed22255
refactor: deprecate util.path.is_dir #3475
...
Work on https://github.com/neovim/nvim-lspconfig/issues/2079
2024-11-28 14:39:12 -08:00
dundargoc
86dcd4d4ec
refactor: deprecate util.path.is_file #3474
2024-11-28 13:44:19 -08:00
dundargoc
2a11b98741
refactor: deprecate util.path.exists
...
Use `vim.uv.fs_stat` instead.
Work on https://github.com/neovim/nvim-lspconfig/issues/2079 .
2024-11-27 14:56:17 +01:00
dundargoc
d651732cec
refactor: group deprecated functions at the end
...
This makes it easier to assess how much functionality still needs to be deprecated.
2024-11-27 12:19:32 +01:00
dundargoc
830ec3893e
refactor: remove internal implementation of util.path.sanitize #3464
...
Return value from `vim.fs.normalize` instead.
2024-11-26 13:42:28 -08:00
Justin M. Keyes
16008a64f6
ci: check for deprecated util functions #3462
2024-11-26 07:34:16 -08:00
dundargoc
3eaab290c7
refactor: remove implementation of util.path.dirname #3460
...
Instead, just return the result of vim.fs.dirname.
2024-11-26 06:48:35 -08:00
dundargoc
16666f1bc4
refactor: remove unnecessary code
2024-10-05 14:56:14 +02:00
Justin M. Keyes
38cd54b706
fix(health): support Nvim 0.9
...
fix #3342
2024-10-02 21:21:27 +02:00
dundargoc
c25b9dd6bd
refactor: replace deprecated vim.loop with vim.uv
2024-10-02 12:09:17 +02:00
Jeong, Heon
53a3c6444e
feat: do not process commands if it's func type ( #3200 )
...
To pass it as-is to the vim.lsp.start_client argument
2024-07-01 14:51:39 +08:00
glepnir
2c1877081b
fix(util): check neovim nightly 0.11 version ( #3173 )
2024-05-23 05:57:12 -07:00
glepnir
a284b14b3a
refactor: move all old get_clients to new compatible ( #3159 )
2024-05-17 17:40:27 +08:00