You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
54 lines
1.5 KiB
return { |
|
"neovim/nvim-lspconfig", |
|
opts = { |
|
servers = { |
|
|
|
clangd = { |
|
keys = { |
|
{ "<leader>ch", "<cmd>LspClangdSwitchSourceHeader<cr>", desc = "Switch Source/Header (C/C++)" }, |
|
}, |
|
root_markers = { |
|
"compile_commands.json", |
|
"compile_flags.txt", |
|
"Makefile", |
|
"configure.ac", |
|
"configure.in", |
|
"config.h.in", |
|
"meson.build", |
|
"meson_options.txt", |
|
"build.ninja", |
|
".git", |
|
}, |
|
capabilities = { |
|
offsetEncoding = { "utf-16" }, |
|
}, |
|
-- local: |
|
-- cmd = { |
|
-- "clangd", |
|
-- "--background-index", |
|
-- "--clang-tidy", |
|
-- "--header-insertion=iwyu", |
|
-- "--completion-style=detailed", |
|
-- "--function-arg-placeholders", |
|
-- "--fallback-style=llvm", |
|
-- }, |
|
|
|
-- remote |
|
cmd = { |
|
"docker", |
|
"exec", |
|
"-i", |
|
"smiko-builder-enterprise-linux_devcontainer-dev-smiko-client-docker-1", |
|
"/home/developer/.vscode-server/extensions/kylinideteam.kylin-clangd-0.6.2-linux-x64/res/clangd/bin/clangd", |
|
"--background-index", |
|
"--path-mappings=/home/chodylal/src/smiko/smiko-builder-enterprise-linux=/workspace", -- Optional: if paths differ |
|
}, |
|
init_options = { |
|
usePlaceholders = true, |
|
completeUnimported = true, |
|
clangdFileStatus = true, |
|
}, |
|
}, |
|
}, |
|
}, |
|
}
|
|
|