Skip to content

Commit

Permalink
feat(lsp): add clangd cmd options
Browse files Browse the repository at this point in the history
  • Loading branch information
umtdg committed Jan 9, 2025
1 parent aadaf97 commit 45727b9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,19 @@ require('lazy').setup({
-- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = {
-- clangd = {},
clangd = {
cmd = {
'clangd',
'--pretty',
'--background-index',
'--header-insertion=never',
'--header-insertion-decorators',
'--clang-tidy',
'--completion-style=bundled',
},
},
-- gopls = {},
-- pyright = {},
pyright = {},
-- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--
Expand Down

0 comments on commit 45727b9

Please sign in to comment.