blob: 0372d3dc208736eae9a8013055fd8090bc0427e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
return {
-- Command and arguments to start the server.
cmd = { 'clangd' },
-- Filetypes to automatically attach to.
filetypes = { 'c', 'cpp', 'h', 'hpp' },
-- Sets the "root directory" to the parent directory of the file in the
-- current buffer that contains either a ".luarc.json" or a
-- ".luarc.jsonc" file. Files that share a root directory will reuse
-- the connection to the same LSP server.
-- Nested lists indicate equal priority, see |vim.lsp.Config|.
root_markers = { '.clangd', 'compile_commands.json' },
}
|