forked from rednblkx/HomeKey-ESP32
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.nvim.lua
More file actions
17 lines (17 loc) · 665 Bytes
/
.nvim.lua
File metadata and controls
17 lines (17 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require("lspconfig").clangd.setup({
capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities()),
cmd = {
os.getenv("HOME") .. "/esp-clang/bin/clangd",
"--query-driver="
.. os.getenv("HOME")
.. "/.espressif/tools/xtensa-esp-elf/**/xtensa-esp-elf/bin/xtensa-*-elf-*,"
.. os.getenv("HOME")
.. "/tools/riscv32-esp-elf/**/riscv32-esp-elf/bin/riscv32-esp-elf-*",
"--background-index",
"--import-insertions",
"--all-scopes-completion",
},
on_attach = require("cmp_nvim_lsp").on_attach,
lsp_flags = require("cmp_nvim_lsp").lsp_flags,
filetypes = { "c", "cpp", "objc", "objcpp", "cuda", "proto" },
})