mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +00:00
languages/csharp: Add roslyn-ls
Add the roslyn-ls lsp to the csharp language model, following standards set by other lsps.
This commit is contained in:
parent
b64f7d48f1
commit
238b86daeb
1 changed files with 16 additions and 0 deletions
|
@ -126,11 +126,27 @@
|
|||
AutomaticWorkspaceInit = true;
|
||||
};
|
||||
};
|
||||
|
||||
roslyn_ls = {
|
||||
cmd = mkLuaInline ''
|
||||
{
|
||||
${toLuaObject (getExe pkgs.roslyn-ls)},
|
||||
'--logLevel=Warning',
|
||||
'--extensionLogDirectory=' .. vim.fs.dirname(vim.lsp.get_log_path()),
|
||||
'--stdio',
|
||||
}
|
||||
'';
|
||||
|
||||
filetypes = ["cs"];
|
||||
root_markers = [".sln" ".csproj" ".editorconfig"];
|
||||
init_options = {};
|
||||
};
|
||||
};
|
||||
|
||||
extraServerPlugins = {
|
||||
omnisharp = ["omnisharp-extended-lsp-nvim"];
|
||||
csharp_ls = ["csharpls-extended-lsp-nvim"];
|
||||
roslyn_ls = [];
|
||||
};
|
||||
|
||||
cfg = config.vim.languages.csharp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue