Commit: 754e503f1bcdae4b304064848f7a38ce4fae78f1
Parent: f3dab8585e490d6ee89d7b2b574628a851c40078
Author: Randy Palamar
Date: Wed, 30 Aug 2023 10:03:30 -0600
vis: build: use ' c' as the compile keybind
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.config/vis/build.lua b/.config/vis/build.lua
@@ -55,13 +55,13 @@ local function build_files(win)
end
end
- win:map(vis.modes.NORMAL, ",c", function ()
+ win:map(vis.modes.NORMAL, " c", function ()
vis:command('w')
vis:info("building: " .. win.file.name)
return builder(win.file)
end, "build file in current window")
end
vis.events.subscribe(vis.events.WIN_OPEN, build_files)
-vis:command_register("build", function()
- vis:feedkeys(",c")
+vis:command_register("build", function ()
+ vis:feedkeys(" c")
end, "build file in current window")