qmk
This commit is contained in:
parent
7ff3f7b450
commit
b816bbed49
|
|
@ -43,6 +43,24 @@ return {
|
|||
-- client specific configuration can also go in `lsp/` in your configuration root (see `:h lsp-config`)
|
||||
config = {
|
||||
-- ["*"] = { capabilities = {} }, -- modify default LSP client settings such as capabilities
|
||||
clangd = {
|
||||
-- Wichtig für C/C++ Entwickler (behebt oft Codierungskonflikte)
|
||||
capabilities = {
|
||||
offsetEncoding = "utf-8",
|
||||
},
|
||||
-- Hier sagen wir dem LSP, wonach er suchen soll, um das QMK-Hauptverzeichnis zu finden
|
||||
root_dir = function(filename)
|
||||
local util = require "lspconfig.util"
|
||||
return util.root_pattern("compile_commands.json", ".git")(filename)
|
||||
end,
|
||||
-- Optionale Optimierungen für clangd
|
||||
cmd = {
|
||||
"clangd",
|
||||
"--background-index",
|
||||
"--clang-tidy",
|
||||
"--header-insertion=never", -- Verhindert, dass clangd ungewollt Header automatisch inkludiert
|
||||
},
|
||||
},
|
||||
},
|
||||
-- customize how language servers are attached
|
||||
handlers = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue