config.nvim/lua/plugins/roslyn.lua

28 lines
873 B
Lua

return {
'seblj/roslyn.nvim',
event = { 'BufReadPre', 'BufNewFile' },
ft = 'cs',
opts = {
filewatching = false,
broad_search = true,
-- ignore_sln = function(sln)
-- return string.match(sln, 'Contactify.sln') ~= nil
-- end,
config = {
settings = {
['csharp|inlay_hints'] = {
csharp_enable_inlay_hints_for_implicit_variable_types = true,
csharp_enable_inlay_hints_for_types = true,
csharp_enable_inlay_hints_for_parameters = true,
},
['csharp|background_analysis'] = {
background_analysis_dotnet_analyzer_diagnostics_scope = 'openFiles',
background_analysis_dotnet_compiler_diagnostics_scope = 'openFiles',
},
['csharp|completion'] = {
dotnet_show_completion_items_from_unimported_namespaces = true,
},
},
},
},
}