ayamir / nvimdots

A well configured and structured Neovim.
BSD 3-Clause "New" or "Revised" License
2.83k stars 451 forks source link

aarch64 doesn't has a suitable clangd in Mason, how can I used the system-installed clangd instead? #1110

Closed metorm closed 5 months ago

metorm commented 6 months ago

Version confirmation

Following prerequisites

Neovim version

NVIM v0.9.4 Build type: Release LuaJIT 2.1.1702233742

Branch info

main (Default/Latest)

Minimal (user) folder structure required to reproduce the issue

A brand-new copy of the nvimdot project. git status return empty. I didn't add any user config for now.

Minimal config with steps on how to reproduce the issue

Launch nvim, and there will be a toast windows "mason clangd install failed". The last line of :MasonLog is:

ion failed for Package(name=clangd) error="The current platform is unsupported."

Expected behavior

If Mason doesn't provide clangd for aarch64, used the system-installed one.

Additional information

A arch linux runs on termux proot-distro. Every other part of the system is running smooth.

CharlesChiuGit commented 6 months ago
  1. remove clangd required at https://github.com/ayamir/nvimdots/blob/8bcc4099aa17812abfcf35a9dea0e5673d461bb5/lua/core/settings.lua#L104

  2. setup system-wide clangd to lspconfig manually.

fyi. https://discourse.llvm.org/t/how-to-build-aarch64-clangd-on-x86-64-host-machine/71805/2 https://github.com/clangd/clangd/issues/514

Jint-lzxy commented 6 months ago

setup system-wide clangd to lspconfig manually.

Here is an example (dartls) in case you're not sure where to start :D

ayamir commented 5 months ago

close due to inactivity.