diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-07-19 23:09:41 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-07-19 23:09:41 +0200 |
| commit | aaac1f04614943dfaf90a23024d1b9b18ced9a6c (patch) | |
| tree | 9a2444f1c6e7edd4ff5f911fdeca2dfd42bac73a /plugin | |
| parent | 4f2e69e86d5d374d5167be4e52bbb672c3713219 (diff) | |
| download | nvim-conf-aaac1f04614943dfaf90a23024d1b9b18ced9a6c.tar.gz nvim-conf-aaac1f04614943dfaf90a23024d1b9b18ced9a6c.zip | |
Add more hydras
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/keymaps.vim | 2 | ||||
| -rw-r--r-- | plugin/packer_compiled.lua | 13 | ||||
| -rw-r--r-- | plugin/test.lua | 40 | ||||
| -rw-r--r-- | plugin/test.vim | 9 |
4 files changed, 50 insertions, 14 deletions
diff --git a/plugin/keymaps.vim b/plugin/keymaps.vim index 89ab66f..d289e68 100644 --- a/plugin/keymaps.vim +++ b/plugin/keymaps.vim @@ -41,7 +41,7 @@ nnoremap <leader>o :lprev<CR> nnoremap <leader>bd :bd!<CR> -nnoremap <expr> <leader>dp ":saveas " . expand('%') +nnoremap <expr> <leader><leader>dp ":saveas " . expand('%') " For moving quickly up and down, " Goes to the first line above/below that isn't whitespace diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index 1c1f179..092dab3 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -195,6 +195,11 @@ _G.packer_plugins = { path = "/home/alpha/.local/share/nvim/site/pack/packer/start/neotest-go", url = "https://github.com/nvim-neotest/neotest-go" }, + ["neotest-plenary"] = { + loaded = true, + path = "/home/alpha/.local/share/nvim/site/pack/packer/start/neotest-plenary", + url = "https://github.com/nvim-neotest/neotest-plenary" + }, ["neotest-vim-test"] = { loaded = true, path = "/home/alpha/.local/share/nvim/site/pack/packer/start/neotest-vim-test", @@ -468,6 +473,10 @@ _G.packer_plugins = { } time([[Defining packer_plugins]], false) +-- Config for: nvim-colorizer.lua +time([[Config for nvim-colorizer.lua]], true) +try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14colorizer\frequire\0", "config", "nvim-colorizer.lua") +time([[Config for nvim-colorizer.lua]], false) -- Config for: nvim-projectconfig time([[Config for nvim-projectconfig]], true) try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23nvim-projectconfig\frequire\0", "config", "nvim-projectconfig") @@ -476,10 +485,6 @@ time([[Config for nvim-projectconfig]], false) time([[Config for git-worktree.nvim]], true) try_loadstring("\27LJ\2\n>\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\17git-worktree\frequire\0", "config", "git-worktree.nvim") time([[Config for git-worktree.nvim]], false) --- Config for: nvim-colorizer.lua -time([[Config for nvim-colorizer.lua]], true) -try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14colorizer\frequire\0", "config", "nvim-colorizer.lua") -time([[Config for nvim-colorizer.lua]], false) -- Command lazy-loads time([[Defining lazy-load commands]], true) diff --git a/plugin/test.lua b/plugin/test.lua new file mode 100644 index 0000000..e48f658 --- /dev/null +++ b/plugin/test.lua @@ -0,0 +1,40 @@ +local hydra = require("hydra") + +vim.g["test#preserve_screen"] = 1 + +vim.cmd([[ + let test#php#pest#executable = 'sail test' + let test#strategy = 'neovim' + let test#neovim#term_position = 'vert' + let g:test#preserve_screen = 1 +]]) + +local hint = [[ + Vim Tests + _n_: Near test _f_: Current file _s_: Test Suit ^ + _l_: Test Last _g_: Visit + ^ ^ _<Esc>_ ^ +]] + +hydra({ + name = "vimtest", + hint = hint, + mode = "n", + config = { + color = "teal", + invoke_on_body = true, + hint = { + border = "rounded", + position = "bottom", + } + }, + body = "<leader>t", + heads = { + { "n", ":TestNearest<CR>" }, + { "f", ":TestFile<CR>" }, + { "s", ":TestSuit<CR>" }, + { "l", ":TestLast<CR>" }, + { "g", ":TestVisit<CR>" }, + { '<Esc>', nil, { exit = true } } + } +}) diff --git a/plugin/test.vim b/plugin/test.vim deleted file mode 100644 index ebcf9b5..0000000 --- a/plugin/test.vim +++ /dev/null @@ -1,9 +0,0 @@ -nmap <silent> t<C-n> :TestNearest<CR> -nmap <silent> t<C-f> :TestFile<CR> -nmap <silent> t<C-s> :TestSuite<CR> -nmap <silent> t<C-l> :TestLast<CR> -nmap <silent> t<C-g> :TestVisit<CR> - -let test#php#pest#executable = 'sail test' -let test#strategy = 'neovim' -let g:test#preserve_screen = 1 |