From f61af678dd5da523340c71f57eb95d8d8a76d780 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Fri, 5 Aug 2022 09:15:30 +0200 Subject: try new hydra for make, add snippets for behat --- after/plugin/hydra.lua | 59 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 38 insertions(+), 21 deletions(-) (limited to 'after/plugin/hydra.lua') diff --git a/after/plugin/hydra.lua b/after/plugin/hydra.lua index 031469f..e94c682 100644 --- a/after/plugin/hydra.lua +++ b/after/plugin/hydra.lua @@ -1,28 +1,45 @@ local ok, hydra = pcall(require, "hydra") if not ok then - return + return end -- Windows management, move and resize hydra({ - name = "windows", - mode = "n", - body = "w", - heads = { - { 'l', 'l' }, - { 'h', 'h' }, - { 'j', 'j' }, - { 'k', 'k' }, - { 'q', 'q' }, - { 'o', 'o' }, - { 'L', '2>' }, - { 'H', '2<' }, - { 'J', '2-' }, - { 'K', '2+' }, - { '', 'L' }, - { '', 'H' }, - { '', 'J' }, - { '', 'K' }, - { '=', '=' }, - }, + name = "windows", + mode = "n", + body = "", + heads = { + { "l", "l" }, + { "h", "h" }, + { "j", "j" }, + { "k", "k" }, + { "q", "q" }, + { "o", "o" }, + { "L", "2>" }, + { "H", "2<" }, + { "J", "2-" }, + { "K", "2+" }, + { "", "L" }, + { "", "H" }, + { "", "J" }, + { "", "K" }, + { "=", "=" }, + }, +}) + +-- want a way to run make commands +-- Make commands runs good but the output is not good +-- like up I like that is done and good +hydra({ + name = "make", + mode = "n", + body = "", + heads = { + { "t", function() vim.cmd("vsplit term://make test") end }, + { "v", function() + vim.cmd('vert new') + vim.fn.termopen("make vars") + vim.cmd('startinsert') + end }, + }, }) -- cgit v1.2.3