Skip to content

Commit 965671e

Browse files
committed
style: re-format with updated stylua config
1 parent 66e6335 commit 965671e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lua/spider/extras/operator-pending/util.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ local Lines = {
1010
local Context = {
1111
__index = function(tab, k)
1212
if k == "__virtualedit" then
13-
local v = vim.split(vim.api.nvim_get_option_value("virtualedit", {}), ",", { plain = true })
13+
local v =
14+
vim.split(vim.api.nvim_get_option_value("virtualedit", {}), ",", { plain = true })
1415
rawset(tab, k, v)
1516
return v
1617
elseif k == "virtualedit" then

lua/spider/extras/precognition.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@ M.register_adapter = function()
77
local spider = require("spider.motion-logic")
88
local adapter = {
99
next_word_boundary = function(str, cursorcol, linelen, bigWord)
10-
if bigWord then return vanillaMotions.next_word_boundary(str, cursorcol, linelen, bigWord) end
10+
if bigWord then
11+
return vanillaMotions.next_word_boundary(str, cursorcol, linelen, bigWord)
12+
end
1113
return spider.getNextPosition(str, cursorcol, "w", globalOpts) or 0
1214
end,
1315
end_of_word = function(str, cursorcol, linelen, bigWord)
1416
if bigWord then return vanillaMotions.end_of_word(str, cursorcol, linelen, bigWord) end
1517
return spider.getNextPosition(str, cursorcol, "e", globalOpts) or 0
1618
end,
1719
prev_word_boundary = function(str, cursorcol, linelen, bigWord)
18-
if bigWord then return vanillaMotions.prev_word_boundary(str, cursorcol, linelen, bigWord) end
20+
if bigWord then
21+
return vanillaMotions.prev_word_boundary(str, cursorcol, linelen, bigWord)
22+
end
1923
return spider.getNextPosition(str, cursorcol, "b", globalOpts) or 0
2024
end,
2125
-- precognition.nvim currently does not support multi character motions (see https://github.com/tris203/precognition.nvim/issues/101#issuecomment-2676676721)

0 commit comments

Comments
 (0)