67

MacOS下配置neovim的nvim-lspconfig + clangd

 3 years ago
source link: https://ooso.net/archives/994
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

配置nvim-lspconfig和clangd的注意事项

  • clangd可以通过homebrew安装 brew install llvm
  • clangd一定要在PATH环境变量下,否则neovim找不到它,LSP也就不能生效。在Apple M1安装llvm后,它的路径在/opt/homebrew/opt/llvm/bin,需要手动把这个路径加到PATH路径。因为系统自带了一个clang,homebrew为了避免冲突,不会自动把llvm加到PATH环境变量中
  • 如果clangd仍然不能生效,可以在neovim下运行LspInfo查看运行时信息


Leave a Reply Cancel reply

Your email address will not be published.

Comment

Name

Email

Website


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK