Skip to content

Setting clangd capabilities #354

Answered by VonHeikemen
ghost asked this question in Q&A
Dec 4, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

If I understand correctly, you can add a new handler for clangd and just setup the language server there.

require('mason').setup({})
require('mason-lspconfig').setup({
  handlers = {
    lsp_zero.default_setup,
    clangd = function()
      require('lspconfig').clangd.setup({
        capabilities = {
          offsetEncoding = 'utf-8',
        },
      })   
    end,
  },
})

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ghost
Comment options

@VonHeikemen
Comment options

@ghost
Comment options

@VonHeikemen
Comment options

@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant