Skip to content

what lsp-zero 3.x do? #414

Answered by VonHeikemen
HEKEPOIU asked this question in Q&A
Oct 20, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote
  1. This is how lsp-zero sets the border for the lsp stuff:
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(
    vim.lsp.handlers.hover,
    {border = 'rounded'}
) 
vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(
    vim.lsp.handlers.signature_help,
    {border = 'rounded'}
)
  1. I think clangd is being setup twice. Try to make the setup inside the mason-lspconfig handlers
require('mason-lspconfig').setup({
    handlers = {
        function(server_name)
            if server_name == "tsserver" then
                return
            end
            require('lspconfig')[server_name].setup({
                capabilities = lsp_capabilities,
            })
        end,
        

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@HEKEPOIU
Comment options

@HEKEPOIU
Comment options

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