This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
2022-05-02 23:35:31 +02:00
|
|
|
-- Author : swytch
|
|
|
|
-- Created : Monday May 2, 2022 21:00:24 CET
|
|
|
|
-- License : GPLv3
|
|
|
|
-- Description : neovim lsp config file for clangd
|
|
|
|
|
|
|
|
|
|
|
|
local M = {}
|
|
|
|
|
2022-12-02 16:12:44 +01:00
|
|
|
local clangd_binary = _G.lsp_root_dir .. "clangd/clangd/bin/clangd"
|
2022-05-02 23:35:31 +02:00
|
|
|
|
|
|
|
M.setup = function(opts)
|
|
|
|
opts.settings = {
|
|
|
|
cmd = { clangd_binary,
|
|
|
|
"--background-index",
|
|
|
|
"--suggest-missing-includes",
|
|
|
|
"--clang-tidy",
|
|
|
|
"--header-insertion=iwyu"
|
|
|
|
},
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|