lspconfig: clangd

This commit is contained in:
krolyxon 2023-03-17 20:51:30 +05:30
parent 6f0017059d
commit 5272c0a5ae
1 changed files with 10 additions and 1 deletions

View File

@ -127,12 +127,21 @@ lspconfig.lua_ls.setup {
-- }
-- }
lspconfig.clangd.setup {
filetypes = { "c", "cpp", "objc", "objcpp", "cuda", "proto" },
single_file_support = true,
on_attach = M.on_attach,
capabilities = M.capabilities,
root_dir = vim.loop.cwd,
-- init_option = { fallbackFlags = { "-std=c++2a" } }
}
local servers = {
"marksman",
"taplo",
-- "pylsp",
"pyright",
"clangd",
"html",
}
for _, lsp in ipairs(servers) do