🗑️ remove(nvim): delete repeated code from the omnisharp extra
This commit is contained in:
parent
156e344476
commit
0c946be6bb
1 changed files with 1 additions and 38 deletions
|
@ -1,45 +1,8 @@
|
||||||
return {
|
return {
|
||||||
{ import = "lazyvim.plugins.extras.lang.omnisharp" },
|
{ import = "lazyvim.plugins.extras.lang.omnisharp" },
|
||||||
{
|
|
||||||
"williamboman/mason.nvim",
|
|
||||||
opts = function(_, opts)
|
|
||||||
opts.ensure_installed = opts.ensure_installed or {}
|
|
||||||
vim.list_extend(opts.ensure_installed, { "netcoredbg" })
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"mfussenegger/nvim-dap",
|
|
||||||
optional = true,
|
|
||||||
opts = function()
|
|
||||||
local dap = require("dap")
|
|
||||||
if not dap.adapters["netcoredbg"] then
|
|
||||||
require("dap").adapters["netcoredbg"] = {
|
|
||||||
type = "executable",
|
|
||||||
command = vim.fn.exepath("netcoredbg"),
|
|
||||||
args = { "--interpreter=vscode" },
|
|
||||||
}
|
|
||||||
end
|
|
||||||
for _, lang in ipairs({ "cs", "fsharp", "vb" }) do
|
|
||||||
if not dap.configurations[lang] then
|
|
||||||
dap.configurations[lang] = {
|
|
||||||
{
|
|
||||||
type = "netcoredbg",
|
|
||||||
name = "Launch file",
|
|
||||||
request = "launch",
|
|
||||||
---@diagnostic disable-next-line: redundant-parameter
|
|
||||||
program = function()
|
|
||||||
return vim.fn.input("Path to dll: ", vim.fn.getcwd() .. "/", "file")
|
|
||||||
end,
|
|
||||||
cwd = "${workspaceFolder}",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"nvim-neotest/neotest",
|
"nvim-neotest/neotest",
|
||||||
optiona = true,
|
optional = true,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"Issafalcon/neotest-dotnet",
|
"Issafalcon/neotest-dotnet",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue