cleanup some vim.cmd calls
All checks were successful
NeoVim tests / plenary-tests (push) Successful in 9s

This commit is contained in:
Jonathan Apodaca 2025-03-12 23:12:28 -06:00
parent de01a95cdc
commit 79499e898c
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ function Range.from_text_object(text_obj, opts)
local prev_on_yank_enabled = on_yank_enabled
on_yank_enabled = false
vim.cmd.normal {
vim.cmd {
cmd = 'normal',
bang = not opts.user_defined,
args = { '""y' .. text_obj },

View File

@ -1,6 +1,6 @@
local M = {}
local function _normal(cmd) vim.cmd.normal { cmd = 'normal', args = { cmd }, bang = true } end
local function _normal(cmd) vim.cmd { cmd = 'normal', args = { cmd }, bang = true } end
M.native_repeat = function() _normal '.' end
M.native_undo = function() _normal 'u' end