feat: enable editor config support for C#

pull/99/head
fm39hz-laptop 2024-10-21 10:25:46 +07:00
parent a817ba070c
commit 00a4a54506
1 changed files with 78 additions and 88 deletions

View File

@ -1,91 +1,81 @@
require("dap.ext.vscode").load_launchjs() require("dap.ext.vscode").load_launchjs()
return { return {
{ {
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
opts = { opts = {
window = { window = {
documentation = { documentation = {
border = "rounded", border = "rounded",
}, },
completion = { completion = {
border = "rounded", border = "rounded",
}, },
}, },
}, },
}, },
-- { {
-- "nvimtools/none-ls.nvim", "neovim/nvim-lspconfig",
-- opts = { opts = {
-- source = { servers = {
-- builtins = { omnisharp = {
-- csharpier = { enable_editor_config_support = true,
-- args = { "--write-stdout", "--no-cache", "$FILENAME" }, },
-- }, },
-- }, },
-- }, },
-- }, {
-- }, "mfussenegger/nvim-dap",
-- { opts = {
-- "nvim-lspconfig", adapters = {
-- opts = { godot = {
-- diagnostics = { type = "server",
-- virtual_text = false, host = "127.0.0.1",
-- }, port = 6006,
-- }, },
-- }, },
{ configurations = {
"mfussenegger/nvim-dap", cs = {
opts = { {
adapters = { type = "godot",
godot = { request = "launch",
type = "server", name = "Launch Scene",
host = "127.0.0.1", project = "${workspaceFolder}",
port = 6006, launch_scene = true,
}, },
}, },
configurations = { },
cs = { },
{ },
type = "godot", {
request = "launch", "rcarriga/nvim-dap-ui",
name = "Launch Scene", opts = {
project = "${workspaceFolder}", expand_lines = true,
launch_scene = true, icons = { expanded = "", collapsed = "", circular = "" },
}, layouts = {
}, {
}, elements = {
}, { id = "watches", size = 0.24 },
}, { id = "scopes", size = 0.24 },
{ { id = "breakpoints", size = 0.24 },
"rcarriga/nvim-dap-ui", { id = "stacks", size = 0.28 },
opts = { },
expand_lines = true, size = 0.23,
icons = { expanded = "", collapsed = "", circular = "" }, position = "right",
layouts = { },
{ {
elements = { elements = {
{ id = "watches", size = 0.24 }, { id = "repl", size = 0.55 },
{ id = "scopes", size = 0.24 }, { id = "console", size = 0.45 },
{ id = "breakpoints", size = 0.24 }, },
{ id = "stacks", size = 0.28 }, size = 0.27,
}, position = "bottom",
size = 0.23, },
position = "right", },
}, floating = {
{ max_height = 0.9,
elements = { max_width = 0.5,
{ id = "repl", size = 0.55 }, border = "rounded",
{ id = "console", size = 0.45 }, },
}, },
size = 0.27, },
position = "bottom",
},
},
floating = {
max_height = 0.9,
max_width = 0.5,
border = "rounded",
},
},
},
} }