mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update clangd settings
This commit is contained in:
parent
e75a0b31d8
commit
d6cd6be63b
@ -52,6 +52,9 @@ local on_attach = function(client, bufnr)
|
|||||||
vim.api.nvim_echo({{msg, 'MoreMsg'}, }, false, {})
|
vim.api.nvim_echo({{msg, 'MoreMsg'}, }, false, {})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
|
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||||
|
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
lspconfig.pyls.setup {
|
lspconfig.pyls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
@ -72,6 +75,7 @@ lspconfig.pyls.setup {
|
|||||||
|
|
||||||
lspconfig.clangd.setup{
|
lspconfig.clangd.setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
capabilities = capabilities,
|
||||||
filetypes = { "c", "cpp", "cc" }
|
filetypes = { "c", "cpp", "cc" }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user