diff options
| author | gyoder <70408179+gyoder@users.noreply.github.com> | 2025-06-14 11:41:23 +0200 |
|---|---|---|
| committer | gyoder <70408179+gyoder@users.noreply.github.com> | 2025-06-14 11:41:23 +0200 |
| commit | bdf3cdecda3d112b14e3ceb50ce4f88862813270 (patch) | |
| tree | aec5cd7764ff726740426dd9e4897e8cdcbf97b6 /vim/.config/nvim/lsp/clangd.lua | |
| parent | d6d6dab3806f88e27990936e83c7b74d08215a9d (diff) | |
added existing nvim config
Diffstat (limited to 'vim/.config/nvim/lsp/clangd.lua')
| -rw-r--r-- | vim/.config/nvim/lsp/clangd.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vim/.config/nvim/lsp/clangd.lua b/vim/.config/nvim/lsp/clangd.lua new file mode 100644 index 0000000..ddbab4f --- /dev/null +++ b/vim/.config/nvim/lsp/clangd.lua @@ -0,0 +1,28 @@ +return { + cmd = { + 'clangd', + -- '--clang-tidy', + '--background-index', + '--offset-encoding=utf-8', + '--query-driver=/Users/scie/.platformio/packages/toolchain-xtensa-esp32/**' + }, + filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda', 'proto', 'arduino' }, + root_markers = { + '.clangd', + '.clang-tidy', + '.clang-format', + 'compile_commands.json', + 'compile_flags.txt', + 'configure.ac' -- AutoTools + }, + single_file_support = true, + capabilities = { + textDocument = { + completion = { + editsNearCursor = true, + }, + }, + offsetEncoding = { 'utf-8', 'utf-16' }, + }, +} + |
