diff --git a/modules/home-manager/programs/neovim/lua/community.lua b/modules/home-manager/programs/neovim/lua/community.lua index d816924..4584bf6 100644 --- a/modules/home-manager/programs/neovim/lua/community.lua +++ b/modules/home-manager/programs/neovim/lua/community.lua @@ -18,6 +18,7 @@ return { { import = "astrocommunity.pack.cmake" }, { import = "astrocommunity.pack.cpp" }, + { import = "astrocommunity.pack.cs" }, { import = "astrocommunity.pack.godot" }, { import = "astrocommunity.pack.html-css" }, { import = "astrocommunity.pack.json" }, diff --git a/modules/home-manager/programs/neovim/polish.nix b/modules/home-manager/programs/neovim/polish.nix index 3e7c5e6..181e5fc 100644 --- a/modules/home-manager/programs/neovim/polish.nix +++ b/modules/home-manager/programs/neovim/polish.nix @@ -30,6 +30,7 @@ pkgs: }, } + -- @type DapAdapter dap.adapters.cppdbg = { id = "cppdbg", type = "executable", @@ -37,6 +38,13 @@ pkgs: "${pkgs.vscode-extensions.ms-vscode.cpptools}/share/vscode/extensions/ms-vscode.cpptools/debugAdapters/bin/OpenDebugAD7", } + -- @type DapAdapter + dap.adapters.coreclr = { + type = "executable", + command = "${pkgs.netcoredbg}/bin/netcoredbg", + args = {"--interpreter=vscode"} + } + -- @type DapConfiguration dap.configurations.rust = { { @@ -51,6 +59,7 @@ pkgs: }, } + -- @type DapConfiguration dap.configurations.cpp = { { name = "Launch file", @@ -77,4 +86,16 @@ pkgs: } dap.configurations.c = dap.configurations.cpp + + -- @type DapConfiguration + dap.configurations.cs = { + { + type = "coreclr", + name = "launch - netcoredbg", + request = "launch", + program = function() + return vim.fn.input('Path to dll', vim.fn.getcwd() .. '/bin/Debug/', 'file') + end, + }, + } ''