Skip to content

Egrvigrf/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

安装

使用autodownload脚本直接安装到指定位置
For windows: %LOCALAPPDATA%/nvim For Linux: "$HOME/.config/nvim" (确定你有稳定的Github网络连接)

nvimconfig

  • 使用lazy插件管理器
  • mason来管理代码补全

可能出现的问题

  • lualine和telescope的符号显示乱码,需要设置支持图形字符的终端字体(比如Nerd fonts) Nerd_font

解决windows下lsp clangd报错检测不到c++头文件的问题
在%LOCALAPPDATA%/clangd目录下建立新建一个config.yaml文件
配置如下

CompileFlags:  
  Add:
    - --target=x86_64-w64-windows-gnu

参考Github讨论

使用clang-format 格式化代码 用mason-tool由于网络原因没法安装llvm,手动安装llvm(含有clang-format)
把/bin添加到环境变量后
llvm
然后在conform自动补全插件里设置

安装失败可以尝试直接用:MasonInstall clang-format --force
:MasonInstall clangd --force

其他问题

windows cmd 没有添加到环境变量,手动添加C:\Windows\System32即可 linux clangd-format 如果用:Masoninstall 安装失败,可以手动安装,可能是没有国内源
linux 复制粘贴出现 clipboard: No provider. Try ":CheckHealth" or ":h clipboard". 安装xclip sudo apt install xclip

About

neovim配置

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors