nvim/lua/user/test.lua
2025-01-15 23:20:30 +05:30

18 lines
553 B
Lua

-- lua/user/test.lua
return function()
-- Set up vim-test plugin
require("packer").use({
"vim-test/vim-test",
config = function()
vim.cmd([[
let test#strategy = "neovim"
" Customize the keybindings or other settings here
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>
]])
end,
})
end