mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nvim): add neotest plugin
This commit is contained in:
@@ -1 +1 @@
|
||||
{"words":["Cheatsheet","Fira","Groeger","Imhoff","MANPATH","Neovim","Zelos","astro","autotag","baleia","catppuccin","chafa","chriskempson","difftool","dotfiles","folke","goolord","miniconda","noautocmd","noice","nvim","oldfiles","pnpx","princejoogie","softwareupdate","startinsert","texbin","tmuxinator","tpope","wezterm","whatchanged","windwp","wuelnerdotexe","zoxide","hrsh","tailwindcss","roobert","zbirenbaum","Kunz","lazyvim","guifg","guibg","devicons","lualine","linrongbin","globalstatus","stylua","navic","tabline","Autocmds","autocmd","afile","yabairc","skhd","skhdrc","yabai","nolist","gitmux","linebreak","wincmd","tabdo","augroup","keymap","keymaps","noremap","bdelete","bufdo","Nzzzv","treesitter","tzachar","hlgroup"],"ignorePaths":["nvim\/dictionary","nvim\/spell","nvim\/thesaurus","private"],"dictionaries":["words"],"version":"0.2","language":"en"}
|
||||
{"dictionaries":["words"],"words":["Cheatsheet","Fira","Groeger","Imhoff","MANPATH","Neovim","Zelos","astro","autotag","baleia","catppuccin","chafa","chriskempson","difftool","dotfiles","folke","goolord","miniconda","noautocmd","noice","nvim","oldfiles","pnpx","princejoogie","softwareupdate","startinsert","texbin","tmuxinator","tpope","wezterm","whatchanged","windwp","wuelnerdotexe","zoxide","hrsh","tailwindcss","roobert","zbirenbaum","Kunz","lazyvim","guifg","guibg","devicons","lualine","linrongbin","globalstatus","stylua","navic","tabline","Autocmds","autocmd","afile","yabairc","skhd","skhdrc","yabai","nolist","gitmux","linebreak","wincmd","tabdo","augroup","keymap","keymaps","noremap","bdelete","bufdo","Nzzzv","treesitter","tzachar","hlgroup","neotest","getcwd","haydenmeade","vitest","marilari"],"ignorePaths":["nvim\/dictionary","nvim\/spell","nvim\/thesaurus","private"],"language":"en","version":"0.2"}
|
||||
|
||||
@@ -54,6 +54,9 @@
|
||||
"neo-tree.nvim": { "branch": "v2.x", "commit": "f765e75e7d2444629b5ace3cd7609c12251de254" },
|
||||
"neoconf.nvim": { "branch": "main", "commit": "08f146d53e075055500dca35e93281faff95716b" },
|
||||
"neodev.nvim": { "branch": "main", "commit": "a2b1d8fb9fa4daa35d3fd9123bccccccbd4a3520" },
|
||||
"neotest": { "branch": "master", "commit": "e46eae5739c470aa011ee43108ea8a730736174e" },
|
||||
"neotest-jest": { "branch": "main", "commit": "22b1050dda3ebd401780ec4b8e193cf52523a4da" },
|
||||
"neotest-vitest": { "branch": "main", "commit": "41bf2f6b743f2ac5c5e9bd0949cee77ca7f2372c" },
|
||||
"noctis.nvim": { "branch": "main", "commit": "0b9336e39c686a7e58de06e4dd38c2bd862a7b33" },
|
||||
"noice.nvim": { "branch": "main", "commit": "4f4a1702a3b2677878e68111af95cc4e775322e1" },
|
||||
"nui.nvim": { "branch": "main", "commit": "d146966a423e60699b084eeb28489fe3b6427599" },
|
||||
|
||||
@@ -14,6 +14,7 @@ require("lazy").setup({
|
||||
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
||||
{ import = "lazyvim.plugins.extras.lang.json" },
|
||||
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||
{ import = "lazyvim.plugins.extras.test.core" },
|
||||
-- import/override with your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
|
||||
50
nvim/lua/plugins/neotest.lua
Normal file
50
nvim/lua/plugins/neotest.lua
Normal file
@@ -0,0 +1,50 @@
|
||||
-- Neotest
|
||||
-- https://github.com/nvim-neotest/neotest
|
||||
return {
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
dependencies = {
|
||||
"haydenmeade/neotest-jest",
|
||||
"marilari88/neotest-vitest",
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>tl",
|
||||
function()
|
||||
require("neotest").run.run_last()
|
||||
end,
|
||||
desc = "Run Last Test",
|
||||
},
|
||||
{
|
||||
"<leader>tL",
|
||||
function()
|
||||
require("neotest").run.run_last({
|
||||
strategy = "dap",
|
||||
})
|
||||
end,
|
||||
desc = "Debug Last Test",
|
||||
},
|
||||
{
|
||||
"<leader>tw",
|
||||
"<cmd>lua require('neotest').run.run({ jestCommand = 'jest --watch ' })<cr>",
|
||||
desc = "Run Watch",
|
||||
},
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(
|
||||
opts.adapters,
|
||||
require("neotest-jest")({
|
||||
jestCommand = "npm test --",
|
||||
jestConfigFile = "custom.jest.config.ts",
|
||||
env = {
|
||||
CI = true,
|
||||
},
|
||||
cwd = function()
|
||||
return vim.fn.getcwd()
|
||||
end,
|
||||
})
|
||||
)
|
||||
table.insert(opts.adapters, require("neotest-vitest"))
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user