Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@

## インストール

本プラグインには Neovim 0.5.0 以上が必要です(Neovim 0.6.1 以降を推奨)。

本プラグインには Neovim 0.11.0 以上が必要です。
好きなパッケージマネージャの指示に従うことでインストールできます。

## 使用方法
Expand Down
2 changes: 1 addition & 1 deletion doc/dial.jax
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
3 changes: 1 addition & 2 deletions doc/dial.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
7 changes: 2 additions & 5 deletions lua/dial/util.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down