p00f / clangd_extensions.nvim

Clangd's off-spec features for neovim's LSP client. Use https://sr.ht/~p00f/clangd_extensions.nvim instead
MIT License
495 stars 18 forks source link

Add functionality for `cmd` parameter on setup #30

Closed jrwrigh closed 1 year ago

jrwrigh commented 1 year ago

ie. for passing flags to clangd. See https://neovim.discourse.group/t/how-to-set-flags-when-calling-setup/3005

require("lspconfig").clangd.setup({
  cmd = {
    "clangd",
    "--completion-style=detailed",
    "--header-insertion=never",
  },
  -- other options
})
p00f commented 1 year ago
require("lspconfig").clangd.setup({
  server = {
    cmd = {
      "clangd",
      "--completion-style=detailed",
      "--header-insertion=never",
    },
    -- other options
  }
})
jrwrigh commented 1 year ago

Ah, whoops! I'm blind. Sorry about that.