From 8b7b3dce9ed489454bfe99ae8d9e819fe25c12ed Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Thu, 16 May 2024 12:13:04 -0700 Subject: [PATCH] ci: run tests against Neovim v0.10.0 --- .github/workflows/tests.yml | 5 ++++- lua/dressing/health.lua | 1 + lua/dressing/map_util.lua | 1 + lua/dressing/select/init.lua | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f3d9a0c..2b4348b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,7 +49,10 @@ jobs: run_tests: strategy: matrix: - nvim_tag: [v0.8.3, v0.9.1] + nvim_tag: + - v0.8.3 + - v0.9.4 + - v0.10.0 name: Run tests runs-on: ubuntu-22.04 diff --git a/lua/dressing/health.lua b/lua/dressing/health.lua index 6e4c6a9..4daf77e 100644 --- a/lua/dressing/health.lua +++ b/lua/dressing/health.lua @@ -4,6 +4,7 @@ local patch = require("dressing.patch") local M = {} -- The "report_" functions have been deprecated, so use the new ones if defined. +---@diagnostic disable: deprecated local health_start = vim.health.start or vim.health.report_start local health_warn = vim.health.warn or vim.health.report_warn local health_ok = vim.health.ok or vim.health.report_ok diff --git a/lua/dressing/map_util.lua b/lua/dressing/map_util.lua index f91d94e..965eb4f 100644 --- a/lua/dressing/map_util.lua +++ b/lua/dressing/map_util.lua @@ -40,6 +40,7 @@ M.create_maps_to_plug = function(bufnr, mode, bindings, prefix) -- HACK for some reason I can't get plug mappings to work in insert mode for _, map in ipairs(maps) do if map.lhs == rhs then + ---@diagnostic disable-next-line: cast-local-type rhs = map.callback or map.rhs break end diff --git a/lua/dressing/select/init.lua b/lua/dressing/select/init.lua index 9c566c1..d696b9a 100644 --- a/lua/dressing/select/init.lua +++ b/lua/dressing/select/init.lua @@ -1,6 +1,7 @@ local global_config = require("dressing.config") local patch = require("dressing.patch") local util = require("dressing.util") +---@diagnostic disable-next-line: deprecated local islist = vim.islist or vim.tbl_islist local M = {}