csharp.nvim
csharp.nvim copied to clipboard
Setting options in `csharp.setup()` is broken
This works:
require("csharp").setup()
But as soon as you try to set options:
require("csharp").setup({
lsp = {
omnisharp = {
analyze_open_documents_only = false,
cmd_path = "",
debug = false,
default_timeout = 1000,
enable = true,
enable_analyzers_support = true,
enable_editor_config_support = true,
enable_import_completion = true,
enable_package_auto_restore = true,
include_prerelease_sdks = true,
load_projects_on_demand = false,
organize_imports = true,
},
capabilities = capabilities,
on_attach = on_attach,
roslyn = {
enable = false,
cmd_path = "",
},
},
})
the plugin stops working. By stops working I mean that LSP diagnostics stop showing where they should be showing.
You have some kind of bug in this logic https://github.com/iabdelkareem/csharp.nvim/blob/e44e275dabbcfc188ce1a5f504aad778e917c814/lua/csharp/config.lua#L102-L120 because removing it fixes the issue.