what lsp-zero 3.x do? #414
Replies: 1 comment 2 replies
-
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'}
)
require('mason-lspconfig').setup({
handlers = {
function(server_name)
if server_name == "tsserver" then
return
end
require('lspconfig')[server_name].setup({
capabilities = lsp_capabilities,
})
end,
clangd = function()
require("lspconfig").clangd.setup {
capabilities = lsp_capabilities,
cmd = {
"clangd",
"--offset-encoding=utf-16",
},
}
end
}
})
formatting = {
fields = {'menu', 'abbr', 'kind'},
format = lspkind.cmp_format()
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
HEKEPOIU
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
recently i realize that my config seem like don't need to use lsp-zero.
so i change my config from
to
after i change, i thought i will keep as same.
but
lsp hover imfomation border gone


before
after
clangd cmd offset-encoding setting (it for nonels) can't apply.
lsp-cmp format different


before:
after:
it seem like lsp-zero apply something i don't realize?(or i misconfig somethinf?)
how can i remove lsp-zero and keep same behavior?
Beta Was this translation helpful? Give feedback.
All reactions