Skip to content

Commit

Permalink
chore!: drop support for < Neovim v0.9 to match with nvim-lspconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Oct 7, 2024
1 parent c86ea63 commit 7f0373b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,14 @@ jobs:
fail-fast: false
matrix:
nvim_version:
- v0.7.0
- v0.7.2
- v0.8.0
- v0.8.1
- v0.8.2
- v0.8.3
- v0.9.0
- v0.9.1
- v0.9.2
- v0.9.4
- v0.9.5
- v0.10.0
- v0.10.1
- v0.10.2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ table for a complete mapping.](./doc/server-mapping.md)**

> `:h mason-lspconfig-requirements`
- neovim `>= 0.7.0`
- neovim `>= 0.9.0`
- `mason.nvim`
- `lspconfig`

Expand Down
2 changes: 1 addition & 1 deletion doc/mason-lspconfig.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*mason-lspconfig.nvim*

Minimum version of neovim: 0.7.0
Minimum version of neovim: 0.9.0

Author: William Boman
Type |gO| to see the table of contents.
Expand Down
3 changes: 2 additions & 1 deletion lua/mason-lspconfig/configs/angularls/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local _ = require "mason-core.functional"
local path = require "mason-core.path"
local platform = require "mason-core.platform"
local uv = vim.uv or vim.loop

---@param install_dir string
return function(install_dir)
Expand Down Expand Up @@ -31,7 +32,7 @@ return function(install_dir)
end

return {
cmd = get_cmd(vim.loop.cwd()),
cmd = get_cmd(uv.cwd()),
on_new_config = function(new_config, root_dir)
new_config.cmd = get_cmd(root_dir)
end,
Expand Down
5 changes: 3 additions & 2 deletions tests/helpers/lua/luassertx.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local a = require "mason-core.async"
local assert = require "luassert"
local match = require "luassert.match"
local uv = vim.uv or vim.loop

local function wait_for(_, arguments)
---@type (fun()): Function to execute until it does not error.
Expand All @@ -9,14 +10,14 @@ local function wait_for(_, arguments)
local timeout = arguments[2]
timeout = timeout or 15000

local start = vim.loop.hrtime()
local start = uv.hrtime()
local is_ok, err
repeat
is_ok, err = pcall(assertions_fn)
if not is_ok then
a.sleep(math.min(timeout, 100))
end
until is_ok or ((vim.loop.hrtime() - start) / 1e6) > timeout
until is_ok or ((uv.hrtime() - start) / 1e6) > timeout

if not is_ok then
error(err)
Expand Down

0 comments on commit 7f0373b

Please sign in to comment.