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.
30 lines
585 B
30 lines
585 B
vim.lsp.config("clangd", { |
|
cmd = { |
|
vim.fn.stdpath("data") .. "/mason/bin/clangd", |
|
"--background-index", |
|
"--clang-tidy", |
|
}, |
|
|
|
filetypes = { "c", "cpp", "objc", "objcpp" }, |
|
|
|
root_markers = { |
|
"compile_commands.json", |
|
"compile_flags.txt", |
|
"CMakeLists.txt", |
|
"meson.build", |
|
".git", |
|
}, |
|
|
|
on_attach = function(client, bufnr) |
|
require("lsp_signature").on_attach({ |
|
bind = true, |
|
floating_window = true, |
|
hint_enable = true, |
|
handler_opts = { |
|
border = "rounded", |
|
}, |
|
}, bufnr) |
|
end, |
|
}) |
|
|
|
vim.lsp.enable("clangd")
|
|
|