all repos — dotfiles @ d77dfd2f8fe52be70992c3f170418efba0c72cb6

linux dotfiles

nvim: add vim-test
Prithu Goswami pg@prithu.dev
Tue, 12 Mar 2024 08:33:58 +0530
commit

d77dfd2f8fe52be70992c3f170418efba0c72cb6

parent

6a667b2ec9edf92bb1f146b84a48d064c6607a5c

3 files changed, 9 insertions(+), 0 deletions(-)

jump to
M config/nvim/init.luaconfig/nvim/init.lua

@@ -158,6 +158,9 @@ -- disable = {"hcl", "python"}

-- } -- } +-- Test runner options +vim.cmd('let test#strategy = "neovim_sticky"') +vim.cmd('let test#neovim#term_position = "vert botright"') -- TODO move to seperate autocmd file vim.cmd ([[
M config/nvim/lua/keymaps.luaconfig/nvim/lua/keymaps.lua

@@ -5,6 +5,10 @@ vim.g.mapleader = ' '

k('', '<Space>', '<Nop>', options) k('i', 'jk', '<esc>', options) +-- vim-test +k('n', '<leader>t' , ':TestNearest<CR>' , options) +k('n', '<leader>T' , ':TestFile<CR>' , options) + -- move around visually (when line is wrapped) k('n', 'j', 'gj', options) k('n', 'k', 'gk', options)
M config/nvim/lua/plugins.luaconfig/nvim/lua/plugins.lua

@@ -15,6 +15,8 @@ use 'MunifTanjim/nui.nvim'

use 'dpayne/CodeGPT.nvim' use 'rktjmp/lush.nvim' + use 'vim-test/vim-test' + -- themes use 'ayu-theme/ayu-vim'