fixed clangd lsp
This commit is contained in:
@ -94,7 +94,6 @@ local on_attach = function(client, bufnr)
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return {
|
||||
@ -226,8 +225,7 @@ return {
|
||||
local clangd_capabilities = capabilities
|
||||
clangd_capabilities.textDocument.semanticHighlighting = true
|
||||
clangd_capabilities.offsetEncoding = { 'utf-16' }
|
||||
require('clangd_extensions').setup {
|
||||
server = {
|
||||
lspconfig['clangd'].setup {
|
||||
capabilities = clangd_capabilities,
|
||||
on_attach = on_attach,
|
||||
cmd = { 'clangd',
|
||||
@ -246,7 +244,9 @@ return {
|
||||
'.git',
|
||||
'build_nvim'
|
||||
)
|
||||
},
|
||||
}
|
||||
|
||||
require('clangd_extensions').setup({
|
||||
extensions =
|
||||
{
|
||||
inlay_hints = {
|
||||
@ -254,8 +254,7 @@ return {
|
||||
only_current_line = true,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
lspconfig['jsonls'].setup {
|
||||
capabilities = capabilities,
|
||||
|
Reference in New Issue
Block a user