diff options
| author | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-08-05 09:15:30 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-08-05 09:16:19 +0200 |
| commit | f61af678dd5da523340c71f57eb95d8d8a76d780 (patch) | |
| tree | 3eaefdab1005bdb5e94b3996f8eced189de62b2a /after/plugin/hydra.lua | |
| parent | 90c1aeb434d993b0efc23c56591bb8a3a8b09554 (diff) | |
| download | nvim-conf-f61af678dd5da523340c71f57eb95d8d8a76d780.tar.gz nvim-conf-f61af678dd5da523340c71f57eb95d8d8a76d780.zip | |
try new hydra for make, add snippets for behat
Diffstat (limited to 'after/plugin/hydra.lua')
| -rw-r--r-- | after/plugin/hydra.lua | 59 |
1 files changed, 38 insertions, 21 deletions
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 = "<leader>w", - heads = { - { 'l', '<C-w>l' }, - { 'h', '<C-w>h' }, - { 'j', '<C-w>j' }, - { 'k', '<C-w>k' }, - { 'q', '<C-w>q' }, - { 'o', '<C-w>o' }, - { 'L', '<C-w>2>' }, - { 'H', '<C-w>2<' }, - { 'J', '<C-w>2-' }, - { 'K', '<C-w>2+' }, - { '<C-l>', '<C-w>L' }, - { '<C-h>', '<C-w>H' }, - { '<C-j>', '<C-w>J' }, - { '<C-k>', '<C-w>K' }, - { '=', '<C-w>=' }, - }, + name = "windows", + mode = "n", + body = "<C-w>", + heads = { + { "l", "<C-w>l" }, + { "h", "<C-w>h" }, + { "j", "<C-w>j" }, + { "k", "<C-w>k" }, + { "q", "<C-w>q" }, + { "o", "<C-w>o" }, + { "L", "<C-w>2>" }, + { "H", "<C-w>2<" }, + { "J", "<C-w>2-" }, + { "K", "<C-w>2+" }, + { "<C-l>", "<C-w>L" }, + { "<C-h>", "<C-w>H" }, + { "<C-j>", "<C-w>J" }, + { "<C-k>", "<C-w>K" }, + { "=", "<C-w>=" }, + }, +}) + +-- 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 = "<C-m>", + 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 }, + }, }) |