Skip to content

Commit

Permalink
fix: lsp capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Oct 25, 2023
1 parent 8e5e172 commit 6c6da9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion config/native/lua/konrad/lsp/capabilities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local capabilities = vim.lsp.protocol.make_client_capabilities()

-- cmp provides more capabilites
local cmp_nvim_lsp = require("cmp_nvim_lsp")
capabilities = cmp_nvim_lsp.default_capabilities(capabilities)
capabilities = cmp_nvim_lsp.update_capabilities(capabilities)

-- Enable (broadcasting) snippet capability for completion
capabilities.textDocument.completion.completionItem.snippetSupport = true
Expand Down
4 changes: 0 additions & 4 deletions config/native/lua/konrad/lsp/settings/omnisharp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ return {
on_init = function(client)
-- disable codelens for omnisharp because it makes it extremely slow
client.server_capabilities.codeLensProvider = nil

-- omnisharp does not implement semanticTokens properly
-- https://github.com/OmniSharp/omnisharp-roslyn/issues/2483
client.server_capabilities.semanticTokensProvider = nil
end,

-- decompilation support via omnisharp-extended-lsp
Expand Down

0 comments on commit 6c6da9e

Please sign in to comment.