mirror of
https://github.com/gyoder/dots.git
synced 2026-02-27 17:03:45 +00:00
added existing nvim config
This commit is contained in:
parent
d6d6dab380
commit
bdf3cdecda
24 changed files with 996 additions and 0 deletions
28
vim/.config/nvim/lsp/clangd.lua
Normal file
28
vim/.config/nvim/lsp/clangd.lua
Normal file
|
|
@ -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' },
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue