Skip to content

clangd can’t find standard library headers  #370

Closed
@mickey298

Description

@mickey298

OS

ubuntu 22 内核:5.15.0

neovim

$ nvim -v
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by runner@fv-az178-366

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/share/nvim"

Run :checkhealth for more info

checkhealth

  • OK: neovim version >= 0.7.0
    23 - OK: Go: go version go1.18.1 linux/amd64
    22 - OK: cargo: cargo 1.65.0 (4bc8f24d3 2022-10-20)
    21 - WARNING: luarocks: not available
    20 - WARNING: Ruby: not available
    19 - WARNING: RubyGem: not available
    18 - WARNING: Composer: not available
    17 - WARNING: PHP: not available
    16 - OK: npm: 6.14.8
    15 - OK: node: v14.9.0
    14 - OK: python3: Python 3.10.6
    13 - OK: pip3: pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
    12 - OK: javac: javac 18.0.2-ea
    11 - OK: java: openjdk version "18.0.2-ea" 2022-07-19
    10 - WARNING: julia: not available
    9 - OK: wget: GNU Wget 1.21.2 在 linux-gnu 上编译。
    8 - OK: curl: curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 ↳ brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib ↳ nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.13
    7 - OK: gzip: gzip 1.10
    6 - OK: tar: tar (GNU tar) 1.34
    5 - WARNING: pwsh: not available
    4 - OK: bash: GNU bash,版本 5.1.16(1)-release (x86_64-pc-linux-gnu)
    3 - OK: sh: Ok
    2 - OK: python3_host_prog: Python 3.10.6
    1 - OK: python3_host_prog pip: pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
    50 - OK: GitHub API rate limit. Used: 0. Remaining: 60. Limit: 60. Reset: 2022年12月18日 星期日

packersync

所有都是already up to date

其他

使用

if command -v curl >/dev/null 2>&1; then
    bash -c "$(curl -fsSL https://raw.githubusercontent.com/ayamir/nvimdots/HEAD/install/install.sh)"
else
    bash -c "$(wget -O- https://raw.githubusercontent.com/ayamir/nvimdots/HEAD/install/install.sh)"
fi

安装后一切都保持默认

问题

1

c/cpp的头文件找不到,同时也没有自动补全
c

2

lsplog错误
c-2
同时打开时间久了后出现轻微的卡顿。

logfile

lsp.log

1 我想问下默认安装后还需不要单独配置某种语言(默认支持哪些?)
2 如何配置?

万分感谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangdClangd(lsp) related issueseducationalIssues that contain useful contentenvIssues caused by incorrect environment settings (terminal, package manager, etc.)good-first-issueGood for newcomerslspLSP related issuesusageUser-specific issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions