♻️ refactor(nvim): add neotest-adapters to their lang extras
This commit is contained in:
parent
1567e6f0eb
commit
74e91b5488
11 changed files with 78 additions and 78 deletions
|
@ -43,6 +43,7 @@
|
|||
"plugins.extras.lang.git",
|
||||
"plugins.extras.lang.markdown-extended",
|
||||
"plugins.extras.lang.python-extended",
|
||||
"plugins.extras.lang.rust-extended",
|
||||
"plugins.extras.lang.web.css",
|
||||
"plugins.extras.lang.web.html",
|
||||
"plugins.extras.lang.web.typescript-extended",
|
||||
|
@ -50,6 +51,7 @@
|
|||
"plugins.extras.linting.shellcheck",
|
||||
"plugins.extras.lsp.actions-preview",
|
||||
"plugins.extras.lsp.compiler",
|
||||
"plugins.extras.lsp.file-operations",
|
||||
"plugins.extras.lsp.garbage-day",
|
||||
"plugins.extras.lsp.glance",
|
||||
"plugins.extras.lsp.inc-rename",
|
||||
|
|
|
@ -22,6 +22,18 @@ return {
|
|||
vim.list_extend(opts.ensure_installed, { "bash-language-server" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
optional = true,
|
||||
dependencies = {
|
||||
"rcasia/neotest-bash",
|
||||
},
|
||||
opts = {
|
||||
adapters = {
|
||||
["neotest-haskell"] = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
|
|
|
@ -15,10 +15,9 @@ return {
|
|||
{ "nvim-telescope/telescope.nvim", optional = true },
|
||||
},
|
||||
config = function()
|
||||
local ok, telescope = pcall(require, "telescope")
|
||||
if ok then
|
||||
telescope.load_extension("ht")
|
||||
end
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("ht")
|
||||
end)
|
||||
end,
|
||||
},
|
||||
{
|
||||
|
@ -44,9 +43,7 @@ return {
|
|||
{
|
||||
"nvim-neotest/neotest",
|
||||
optional = true,
|
||||
dependencies = {
|
||||
{ "mrcjkb/neotest-haskell" },
|
||||
},
|
||||
dependencies = { "mrcjkb/neotest-haskell" },
|
||||
opts = {
|
||||
adapters = {
|
||||
["neotest-haskell"] = {},
|
||||
|
@ -64,14 +61,11 @@ return {
|
|||
{
|
||||
"luc-tielen/telescope_hoogle",
|
||||
ft = { "haskell", "lhaskell", "cabal", "cabalproject" },
|
||||
dependencies = {
|
||||
{ "nvim-telescope/telescope.nvim" },
|
||||
},
|
||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||
config = function()
|
||||
local ok, telescope = pcall(require, "telescope")
|
||||
if ok then
|
||||
telescope.load_extension("hoogle")
|
||||
end
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("hoogle")
|
||||
end)
|
||||
end,
|
||||
},
|
||||
-- Make sure lspconfig doesn't start hls,
|
||||
|
|
15
.config/nvim/lua/plugins/extras/lang/omnisharp-extended.lua
Normal file
15
.config/nvim/lua/plugins/extras/lang/omnisharp-extended.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
{ import = "lazyvim.plugins.extras.lang.omnisharp" },
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
optiona = true,
|
||||
dependencies = {
|
||||
"Issafalcon/neotest-dotnet",
|
||||
},
|
||||
opts = {
|
||||
adapters = {
|
||||
["neotest-dotnet"] = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -44,6 +44,18 @@ return {
|
|||
}
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
optional = true,
|
||||
dependencies = {
|
||||
"olimorris/neotest-phpunit",
|
||||
},
|
||||
opts = {
|
||||
adapters = {
|
||||
["neotest-phpunit"] = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
|
|
|
@ -74,6 +74,35 @@ return {
|
|||
code_lens = "all",
|
||||
},
|
||||
},
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
optional = true,
|
||||
dependencies = {
|
||||
"nvim-neotest/neotest-jest",
|
||||
"adrigzr/neotest-mocha",
|
||||
"marilari88/neotest-vitest",
|
||||
},
|
||||
opts = {
|
||||
adapters = {
|
||||
["neotest-jest"] = {
|
||||
jestCommand = "npm test --",
|
||||
jestConfigFile = "custom.jest.config.ts",
|
||||
env = { CI = true },
|
||||
cwd = function()
|
||||
return vim.fn.getcwd()
|
||||
end,
|
||||
},
|
||||
["neotest-mocha"] = {
|
||||
command = "npm test --",
|
||||
env = { CI = true },
|
||||
cwd = function(path)
|
||||
return vim.fn.getcwd()
|
||||
end,
|
||||
},
|
||||
["neotest-vitest"] = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
return {
|
||||
"nvim-neotest/neotest",
|
||||
dependencies = {
|
||||
"haydenmeade/neotest-jest",
|
||||
},
|
||||
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,
|
||||
})
|
||||
)
|
||||
end,
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
return {
|
||||
"nvim-neotest/neotest",
|
||||
dependencies = {
|
||||
"adrigzr/neotest-mocha",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(
|
||||
opts.adapters,
|
||||
require("neotest-mocha")({
|
||||
command = "npm test --",
|
||||
env = { CI = true },
|
||||
cwd = function(path)
|
||||
return vim.fn.getcwd()
|
||||
end,
|
||||
})
|
||||
)
|
||||
end,
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
return {
|
||||
"nvim-neotest/neotest",
|
||||
dependencies = {
|
||||
"nvim-neotest/neotest-python",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.adapters, require("neotest-python"))
|
||||
end,
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
return {
|
||||
"nvim-neotest/neotest",
|
||||
dependencies = {
|
||||
"rouge8/neotest-rust",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.adapters, require("neotest-rust"))
|
||||
end,
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
return {
|
||||
"nvim-neotest/neotest",
|
||||
dependencies = {
|
||||
"marilari88/neotest-vitest",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.adapters, require("neotest-vitest"))
|
||||
end,
|
||||
}
|
Loading…
Add table
Reference in a new issue