chore(clangd): change filetypes and notes on how to get it to recognize some local headers
This commit is contained in:
1 parent
e94d1374e8
commit
b88b2b18b9
2 files changed
+6
-1
No files matched your search
@@ -36,6 +36,11 @@ unless you add a `.luarc.json` file with the following content:
|
||||
}
|
||||
```
|
||||
|
||||
### Clangd
|
||||
If `clangd` can't find some headers, then you need to create a `compile_commands.json` file.
|
||||
When a `Makefile` is present (or other build tools such as `cmake` are used, look up how to do that online), you can use `bear` as follows to create this file:
|
||||
`bear -- make`. That's it
|
||||
|
||||
### Java
|
||||
#### jdtls
|
||||
Ensure you have jdk21-opnejdk or newer installed. On Arch (and derivatives) you can switch the preferred java version using `archlinux-java set <version name>`
|
||||
|
||||
@@ -11,7 +11,7 @@ lsp.config("clangd", {
|
||||
"--suggest-missing-includes",
|
||||
"--clang-tidy",
|
||||
},
|
||||
filetypes = { "c", "cpp", "objc", "objcpp", "cuda", "proto", "ino" },
|
||||
filetypes = { "c", "cpp", "objc", "objcpp", "cuda" },
|
||||
capabilities = opts.capabilities,
|
||||
on_attach = opts.on_attach_no_formatting,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user