This commit is contained in:
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -6,7 +6,3 @@
|
|||||||
path = library/luv
|
path = library/luv
|
||||||
url = https://github.com/LuaCATS/luv
|
url = https://github.com/LuaCATS/luv
|
||||||
branch = main
|
branch = main
|
||||||
[submodule "nvimv"]
|
|
||||||
path = nvimv
|
|
||||||
url = https://github.com/jrop/nvimv
|
|
||||||
branch = main
|
|
||||||
|
|||||||
11
mise.toml
11
mise.toml
@@ -15,6 +15,7 @@ jq = "1.8.1"
|
|||||||
# but to avoid having to litter a bunch of commands with that environment
|
# but to avoid having to litter a bunch of commands with that environment
|
||||||
# initialization, this just makes things simpler:
|
# initialization, this just makes things simpler:
|
||||||
neovim = "0.12.1"
|
neovim = "0.12.1"
|
||||||
|
"http:nvimv" = { version = "latest", url = "https://raw.githubusercontent.com/jrop/nvimv/refs/heads/main/nvimv" }
|
||||||
stylua = "2.3.1"
|
stylua = "2.3.1"
|
||||||
"cargo:emmylua_ls" = "0.20.0"
|
"cargo:emmylua_ls" = "0.20.0"
|
||||||
"cargo:emmylua_check" = "0.20.0"
|
"cargo:emmylua_check" = "0.20.0"
|
||||||
@@ -44,10 +45,10 @@ echo
|
|||||||
if find .prefix -path '**/nightly/**/nvim' -mtime -1 2>/dev/null | grep -q .; then
|
if find .prefix -path '**/nightly/**/nvim' -mtime -1 2>/dev/null | grep -q .; then
|
||||||
echo "Neovim Nightly is up-to-date"
|
echo "Neovim Nightly is up-to-date"
|
||||||
else
|
else
|
||||||
if ./nvimv/nvimv ls | grep nightly >/dev/null; then
|
if nvimv ls | grep nightly >/dev/null; then
|
||||||
./nvimv/nvimv upgrade nightly
|
nvimv upgrade nightly
|
||||||
else
|
else
|
||||||
./nvimv/nvimv install nightly
|
nvimv install nightly
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
@@ -66,8 +67,8 @@ echo Neovim version=$usage_version
|
|||||||
echo -----------------------------
|
echo -----------------------------
|
||||||
echo -----------------------------
|
echo -----------------------------
|
||||||
echo
|
echo
|
||||||
./nvimv/nvimv install $usage_version
|
nvimv install $usage_version
|
||||||
eval $(./nvimv/nvimv env $usage_version)
|
eval $(nvimv env $usage_version)
|
||||||
busted --verbose
|
busted --verbose
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
1
nvimv
1
nvimv
Submodule nvimv deleted from bd5c243b96
@@ -1,6 +1,10 @@
|
|||||||
require 'luacov'
|
require 'luacov'
|
||||||
|
|
||||||
--- @diagnostic disable: undefined-field, need-check-nil
|
--- @diagnostic disable: need-check-nil
|
||||||
|
--- @diagnostic disable: param-type-mismatch
|
||||||
|
--- @diagnostic disable: undefined-field
|
||||||
|
--- @diagnostic disable: unnecessary-assert
|
||||||
|
|
||||||
local Pos = require('u').Pos
|
local Pos = require('u').Pos
|
||||||
local Range = require('u').Range
|
local Range = require('u').Range
|
||||||
local function withbuf(lines, f)
|
local function withbuf(lines, f)
|
||||||
@@ -374,9 +378,6 @@ describe('Range', function()
|
|||||||
vim.fn.setpos('.', { 0, 1, 1, 0 })
|
vim.fn.setpos('.', { 0, 1, 1, 0 })
|
||||||
vim.cmd.normal 'vll' -- select 'the' (3 chars)
|
vim.cmd.normal 'vll' -- select 'the' (3 chars)
|
||||||
|
|
||||||
-- Record initial visual marks
|
|
||||||
local initial_v = vim.fn.getpos 'v'
|
|
||||||
|
|
||||||
-- Call from_motion (should save and restore visual selection)
|
-- Call from_motion (should save and restore visual selection)
|
||||||
local range = Range.from_motion 'aw'
|
local range = Range.from_motion 'aw'
|
||||||
assert.is_not_nil(range)
|
assert.is_not_nil(range)
|
||||||
@@ -661,7 +662,7 @@ describe('Range', function()
|
|||||||
-- histget()
|
-- histget()
|
||||||
local orig_histget = vim.fn.histget
|
local orig_histget = vim.fn.histget
|
||||||
--- @diagnostic disable-next-line: duplicate-set-field
|
--- @diagnostic disable-next-line: duplicate-set-field
|
||||||
function vim.fn.histget(x, y) return [['<,'>]] end
|
function vim.fn.histget() return [['<,'>]] end
|
||||||
|
|
||||||
-- Now run the test:
|
-- Now run the test:
|
||||||
local range = Range.from_cmd_args(args) --[[@as u.Range]]
|
local range = Range.from_cmd_args(args) --[[@as u.Range]]
|
||||||
|
|||||||
Reference in New Issue
Block a user