Config
This commit is contained in:
parent
7201dc4801
commit
be36a60446
36 changed files with 800 additions and 7 deletions
24
lua/custom/plugins/clangd.lua
Normal file
24
lua/custom/plugins/clangd.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
local lspconfig = require 'lspconfig'
|
||||
local default_capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
default_capabilities.offsetEncoding = { 'utf-16' }
|
||||
lspconfig.clangd.setup {
|
||||
settings = {
|
||||
clangd = {
|
||||
usePlaceholders = true,
|
||||
completeUnimported = true,
|
||||
semanticHighlighting = true,
|
||||
},
|
||||
},
|
||||
cmd = {
|
||||
'clangd',
|
||||
'--background-index',
|
||||
'--clang-tidy',
|
||||
'--header-insertion=iwyu',
|
||||
'--completion-style=detailed',
|
||||
'--function-arg-placeholders',
|
||||
'--fallback-style=llvm',
|
||||
},
|
||||
capabilities = default_capabilities,
|
||||
}
|
||||
|
||||
return {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue