You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting following error when trying to call handler:
Error executing vim.schedule lua callback: ...lazy/omnisharp-extended-lsp.nvim/lua/omnisharp_utils.lua:152: attempt to index local 'opts' (a nil value)
stack traceback:
...lazy/omnisharp-extended-lsp.nvim/lua/omnisharp_utils.lua:152: in function 'cmd_params'
...lazy/omnisharp-extended-lsp.nvim/lua/generic_command.lua:39: in function 'omnisharp_cmd'
...lazy/omnisharp-extended-lsp.nvim/lua/generic_command.lua:50: in function 'handler'
...nvim/lazy/omnisharp-extended-lsp.nvim/lua/definition.lua:140: in function 'handler'
/usr/share/nvim/runtime/lua/vim/lsp/client.lua:687: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
My configuration looks like this. There is a small chance that it's an AstroNvim issue.
return {
"AstroNvim/astrolsp",
-- we need to use the function notation to get access to the `lspconfig` module---@paramoptsAstroLSPOptsopts=function(plugin, opts)
opts.servers=opts.serversor {}
table.insert(opts.servers, "omnisharp")
opts.config=require("astrocore").extend_tbl(opts.configor {}, {
-- this must be a function to get access to the `lspconfig` moduleomnisharp= {
handlers= {
["textDocument/definition"] =require("omnisharp_extended").definition_handler,
["textDocument/typeDefinition"] =require("omnisharp_extended").type_definition_handler,
["textDocument/references"] =require("omnisharp_extended").references_handler,
["textDocument/implementation"] =require("omnisharp_extended").implementation_handler,
},
-- the command for starting the servercmd= { "omnisharp", "--languageserver", "--hostPID", tostring(vim.fn.getpid()) },
-- the filetypes to attach the server tofiletypes= { "cs" },
settings= {
omnisharp= {
enableDecompilationSupport=true,
},
},
-- root directory detection for detecting the project root-- root_dir = require("lspconfig.util").root_pattern "pack.pl",
},
})
end,
}
After i change line of plugin code from this: excludeDefinition = opts.excludeDefinition or false,
to this: excludeDefinition = false,
all works just fine
The text was updated successfully, but these errors were encountered:
I'm getting following error when trying to call handler:
My configuration looks like this. There is a small chance that it's an AstroNvim issue.
After i change line of plugin code from this:
excludeDefinition = opts.excludeDefinition or false,
to this:
excludeDefinition = false,
all works just fine
The text was updated successfully, but these errors were encountered: