aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChris Bandy <bandy.chris@gmail.com>2025-04-10 22:48:31 +0000
committerGitHub <noreply@github.com>2025-04-10 15:48:31 -0700
commit4ea9083b6d3dff4ddc6da17c51334c3255b7eba5 (patch)
treeb3c094868a4942151bf8ec0d5cd87bf7cac85a92 /scripts
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-4ea9083b6d3dff4ddc6da17c51334c3255b7eba5.tar
nvim-lspconfig-4ea9083b6d3dff4ddc6da17c51334c3255b7eba5.tar.gz
nvim-lspconfig-4ea9083b6d3dff4ddc6da17c51334c3255b7eba5.tar.bz2
nvim-lspconfig-4ea9083b6d3dff4ddc6da17c51334c3255b7eba5.tar.lz
nvim-lspconfig-4ea9083b6d3dff4ddc6da17c51334c3255b7eba5.tar.xz
nvim-lspconfig-4ea9083b6d3dff4ddc6da17c51334c3255b7eba5.tar.zst
nvim-lspconfig-4ea9083b6d3dff4ddc6da17c51334c3255b7eba5.zip
refactor: replace vim.loop with vim.uv #3703v2.0.0
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/docgen.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/docgen.lua b/scripts/docgen.lua
index 2f7d114e..56cb9939 100755
--- a/scripts/docgen.lua
+++ b/scripts/docgen.lua
@@ -57,7 +57,7 @@ local function make_section(indentlvl, sep, parts)
end
local function readfile(path)
- assert((vim.loop.fs_stat(path) or {}).type == 'file')
+ assert((vim.uv.fs_stat(path) or {}).type == 'file')
return io.open(path):read '*a'
end
@@ -182,7 +182,7 @@ local function make_lsp_sections(is_markdown)
})
if docs then
- local tempdir = os.getenv 'DOCGEN_TEMPDIR' or vim.loop.fs_mkdtemp '/tmp/nvim-lspconfig.XXXXXX'
+ local tempdir = os.getenv 'DOCGEN_TEMPDIR' or vim.uv.fs_mkdtemp '/tmp/nvim-lspconfig.XXXXXX'
local preamble_parts = make_parts {
function()
if docs.description and #docs.description > 0 then
@@ -192,10 +192,10 @@ local function make_lsp_sections(is_markdown)
function()
local package_json_name = table.concat({ tempdir, config_name .. '.package.json' }, '/')
if docs.package_json then
- if not ((vim.loop.fs_stat(package_json_name) or {}).type == 'file') then
+ if not ((vim.uv.fs_stat(package_json_name) or {}).type == 'file') then
os.execute(string.format('curl -v -L -o %q %q', package_json_name, docs.package_json))
end
- if not ((vim.loop.fs_stat(package_json_name) or {}).type == 'file') then
+ if not ((vim.uv.fs_stat(package_json_name) or {}).type == 'file') then
print(string.format('Failed to download package.json for %q at %q', config_name, docs.package_json))
os.exit(1)
return