Closed marvindore closed 9 months ago
Resolved, I got some assistance from @nilsgehlin where in his dotfiles I noticed I was not setting up capabilities correctly. I changed my capabilities to:
local capabilies = vim.tbl_deep_extend("force", vim.lsp.protocol.make_client_capabilities(), require('cmp_nvim_lsp').default_capabilities() )
and it started to work.
Weird turn of events from the weekend. I decided to reorganize all my plugins using the plugins folder like Lazy nvim suggests. I created a file for mason where I setup lsps and another for nvim-cmp. This change broke roslyn.nvim for me again. I suspected it had something to do with the capabilities again, maybe the way lazy vim loads Mason and nvm-cmp the ordering was wrong. As I was debugging I set capabilities to nil
and everything started working again. I'm not sure if this is correct? but now my setup looks like this:
require("roslyn").setup({
on_attach = _G.on_attach(lsp),
capabilities = nil,
})
Hello thank you for taking the time to make this plugin. I have made progress installing the plugin but can’t seem to get any of the LSP functionality to work. Here are my steps and observations:
end
When I type :LspInfo it says:
But there are no diagnostics, and goto definition is not working.
Edit: I also notice in init.lua the callback in M.setup_autocmds() is not firing. I added this print statement but it never executed: