diff --git a/README.md b/README.md index 164d5fe..36304b5 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Extended increment/decrement plugin for [Neovim](https://github.com/neovim/neovi ## Installation -`dial.nvim` requires Neovim `>=0.5.0` (`>=0.6.1` is recommended). +`dial.nvim` requires Neovim `>=0.11.0`. You can install `dial.nvim` by following the instructions of your favorite package manager. ## Usage diff --git a/README_ja.md b/README_ja.md index 1974374..1a9c67f 100644 --- a/README_ja.md +++ b/README_ja.md @@ -41,8 +41,7 @@ ## インストール -本プラグインには Neovim 0.5.0 以上が必要です(Neovim 0.6.1 以降を推奨)。 - +本プラグインには Neovim 0.11.0 以上が必要です。 好きなパッケージマネージャの指示に従うことでインストールできます。 ## 使用方法 diff --git a/doc/dial.jax b/doc/dial.jax index 5f94054..e195ddf 100644 --- a/doc/dial.jax +++ b/doc/dial.jax @@ -39,7 +39,7 @@ Interface |dial-interface| ============================================================================== REQUIREMENTS *dial-requirements* -* Neovim 0.6.1 or later(0.5.0 以降なら動くと考えられますが保証はしません) +* Neovim 0.11.0 or later ============================================================================== INTRODUCTION *dial-introduction* diff --git a/doc/dial.txt b/doc/dial.txt index c3f31e9..d69654a 100644 --- a/doc/dial.txt +++ b/doc/dial.txt @@ -40,8 +40,7 @@ Interface |dial-interface| ============================================================================== REQUIREMENTS *dial-requirements* -* Neovim 0.6.1 or later - (0.5.0 or later will probably work, but not guaranteed) +* Neovim 0.11.0 or later ============================================================================== INTRODUCTION *dial-introduction* diff --git a/lua/dial/util.lua b/lua/dial/util.lua index 0acd16d..33fa81c 100644 --- a/lua/dial/util.lua +++ b/lua/dial/util.lua @@ -1,9 +1,6 @@ -- utils local M = {} --- NOTE: Needed until compatibility with Neovim 0.9 is dropped -local islist = vim.fn.has('nvim-0.10') == 1 and vim.islist or vim.tbl_islist - ---@generic T ---@param cond boolean ---@param branch_true T @@ -41,7 +38,7 @@ end ---@param arg1 string | function ---@param arg2? string function M.validate_list(name, list, arg1, arg2) - if not islist(list) then + if not vim.islist(list) then error(("%s is not list."):format(name)) end @@ -163,7 +160,7 @@ end -- util.try_get_keys({foo = "bar", hoge = "fuga", teka = "pika"}, ["teka", "foo"]) -- -> ["pika", "bar"] function M.try_get_keys(tbl, keylst) - if not islist(keylst) then + if not vim.islist(keylst) then return nil, "the 2nd argument is not list." end