mirror of
https://github.com/Smaug123/nix-dotfiles
synced 2025-10-21 06:08:40 +00:00
Add C# language server
This commit is contained in:
@@ -280,6 +280,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
|
nixpkgs.csharp-ls
|
||||||
nixpkgs.netcoredbg
|
nixpkgs.netcoredbg
|
||||||
nixpkgs.nil
|
nixpkgs.nil
|
||||||
nixpkgs.fsautocomplete
|
nixpkgs.fsautocomplete
|
||||||
|
@@ -2,6 +2,8 @@ local coq = require("coq")
|
|||||||
|
|
||||||
-- Using rustaceanvim means we shouldn't set up the LSP for Rust manually.
|
-- Using rustaceanvim means we shouldn't set up the LSP for Rust manually.
|
||||||
|
|
||||||
|
require("lspconfig")["csharp_ls"].setup({})
|
||||||
|
|
||||||
require("lspconfig")["lua_ls"].setup({
|
require("lspconfig")["lua_ls"].setup({
|
||||||
on_init = function(client)
|
on_init = function(client)
|
||||||
local path = client.workspace_folders[1].name
|
local path = client.workspace_folders[1].name
|
||||||
|
@@ -3,7 +3,7 @@ local dap_ui = require("dap.ui.widgets")
|
|||||||
dap.adapters.coreclr = {
|
dap.adapters.coreclr = {
|
||||||
type = "executable",
|
type = "executable",
|
||||||
command = "netcoredbg",
|
command = "netcoredbg",
|
||||||
args = { "--interpreter=vscode", "--", "dotnet" },
|
args = { "--interpreter=vscode" },
|
||||||
}
|
}
|
||||||
|
|
||||||
dap.configurations.fsharp = {
|
dap.configurations.fsharp = {
|
||||||
@@ -17,6 +17,17 @@ dap.configurations.fsharp = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
do
|
do
|
||||||
local status, whichkey = pcall(require, "which-key")
|
local status, whichkey = pcall(require, "which-key")
|
||||||
if status then
|
if status then
|
||||||
|
Reference in New Issue
Block a user