Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Enable clang-tidy for clangd #392

Answered by williamboman
tdejager asked this question in Q&A
Discussion options

You must be logged in to vote

Hello and thanks for your kind words! Recently I made a change where nvim-lsp-installer no longer (apart from a few exceptions) overrides the cmd governed by lspconfig. Instead it will extend the PATH, allowing you to configure the cmd accordingly. So you should be able to just

server:setup {
  cmd = {
     "clangd",
     "--background-index",
     "-j=12",
     "--query-driver=/usr/bin/**/clang-*,/bin/clang,/bin/clang++,/usr/bin/gcc,/usr/bin/g++",
     "--clang-tidy",
     "--clang-tidy-checks=*",
     "--all-scopes-completion",
     "--cross-file-rename",
     "--completion-style=detailed",
     "--header-insertion-decorators",
     "--header-insertion=iwyu",
     "--pch-storage=memory",…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@williamboman
Comment options

@williamboman
Comment options

@tdejager
Comment options

@kelvin-van-vuuren
Comment options

@ravenxrz
Comment options

Answer selected by tdejager
Comment options

You must be logged in to vote
1 reply
@c60cb859
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants