Add cmp, and some auto formatting and inlay hints to lsps, add some tweaks to clangd

This commit is contained in:
Martin Larsson 2024-04-08 10:47:23 +02:00
parent 64b0035e16
commit 0c897e42bd
3 changed files with 95 additions and 0 deletions

View file

@ -22,6 +22,16 @@ local function switch_between_header_and_source(bufnr)
end
local M = {
cmd = {
"clangd",
"--background-index",
"--clang-tidy",
"--completion-style=bundled",
-- "--cross-file-rename", // This has been deprecated
"--rename-file-limit=0",
"--header-insertion=iwyu",
"--inlay-hints",
},
commands = {
ClangdSwitchSourceHeader = {
function()