dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: 7a9096efef5dda25e4aeea4b4f827a0a231228fa
Parent: 7ea1d4ddf1300af03c7b4e17d989e51731f53355
Author: Randy Palamar
Date:   Sat, 27 Apr 2024 19:12:15 -0600

vis: drop unnecessary feedkeys macro usage

That function is only needed when the function will be used as
part of the table passed to function_chain.

Diffstat:
M.config/vis/macros.lua | 2+-
M.config/vis/visrc.lua | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.config/vis/macros.lua b/.config/vis/macros.lua @@ -57,7 +57,7 @@ local function macros(win) { m.VISUAL, "\\mi", sur("\\begin{minipage}[c]{0.49\\textwidth}\n", "\\end{minipage}\\hfill\n") }, } lang["haskell"] = { - { m.NORMAL, "gq", fk("vip:|hindent<Enter><Escape>") }, + { m.NORMAL, "gq", "vip:|hindent<Enter><Escape>" }, } local binds = lang[win.syntax] diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -37,9 +37,9 @@ vis.events.subscribe(vis.events.INIT, function() vis.options = { autoindent = true } - local m, fk, cmd = vis.modes, util.feedkeys, util.command - vis:map(m.NORMAL, " f", fk("v$:|furigana<Enter><Escape>")) - vis:map(m.NORMAL, "gq", fk("vip=<Escape>")) + local m, cmd = vis.modes, util.command + vis:map(m.NORMAL, " f", "v$:|furigana<Enter><Escape>") + vis:map(m.NORMAL, "gq", "vip=<Escape>") vis:map(m.VISUAL, " s", cmd("|sort")) vis:map(m.NORMAL, "vo", cmd("x/[ \t\r]+$/ d"),