aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_defaults.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-10-03 10:57:54 +0800
committerGitHub <noreply@github.com>2024-10-03 10:57:54 +0800
commit4075e613b2d38ee77e8843e9db1bf9d42af0cd49 (patch)
tree990a0e7d9ed51284c59b184dc8b63f2ec2214abe /runtime/lua/vim/_defaults.lua
parent184d5e75434f52170df930dcb6928014d03a7081 (diff)
downloadrneovim-4075e613b2d38ee77e8843e9db1bf9d42af0cd49.tar.gz
rneovim-4075e613b2d38ee77e8843e9db1bf9d42af0cd49.tar.bz2
rneovim-4075e613b2d38ee77e8843e9db1bf9d42af0cd49.zip
fix(defaults): properly pass count to quickfix commands (#30632)
Diffstat (limited to 'runtime/lua/vim/_defaults.lua')
-rw-r--r--runtime/lua/vim/_defaults.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua
index 09670f4c32..6dd1c938de 100644
--- a/runtime/lua/vim/_defaults.lua
+++ b/runtime/lua/vim/_defaults.lua
@@ -225,13 +225,13 @@ do
})
vim.keymap.set('n', '[Q', function()
- vim.cmd.crewind({ args = vim.v.count ~= 0 and { vim.v.count } or nil })
+ vim.cmd.crewind({ count = vim.v.count ~= 0 and vim.v.count or nil })
end, {
desc = ':crewind',
})
vim.keymap.set('n', ']Q', function()
- vim.cmd.clast({ args = vim.v.count ~= 0 and { vim.v.count } or nil })
+ vim.cmd.clast({ count = vim.v.count ~= 0 and vim.v.count or nil })
end, {
desc = ':clast',
})
@@ -262,13 +262,13 @@ do
})
vim.keymap.set('n', '[L', function()
- vim.cmd.lrewind({ args = vim.v.count ~= 0 and { vim.v.count } or nil })
+ vim.cmd.lrewind({ count = vim.v.count ~= 0 and vim.v.count or nil })
end, {
desc = ':lrewind',
})
vim.keymap.set('n', ']L', function()
- vim.cmd.llast({ args = vim.v.count ~= 0 and { vim.v.count } or nil })
+ vim.cmd.llast({ count = vim.v.count ~= 0 and vim.v.count or nil })
end, {
desc = ':llast',
})