nvim: add vim-test
Prithu Goswami pg@prithu.dev
Tue, 12 Mar 2024 08:33:58 +0530
3 files changed,
9 insertions(+),
0 deletions(-)
M
config/nvim/init.lua
→
config/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.lua
→
config/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.lua
→
config/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'