/nvim-for-xiaotan

neovim配置仓库

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

neovim for xiaotan

自己配置neovim的配置备份仓库,方便后续迁移开发环境时候获取,下面方法可以配置使用该配置。

依赖环境

  • Install Neovim v0.8.0.

  • lazygit install

    sudo add-apt-repository ppa:lazygit-team/releases
    sudo apt-get update
    sudo apt-get install lazygit

    if up way is not useful,dirict to get lazygit in github release.

  • update tmux 3.2+ to release to fix the problem:clipboard:error:tmux:unknown option -- w

    ./configure && make
    sudo make install
    

    tmux depends on libevent 2.x, available from release.

  • clang-format 格式化C/c++

sudo apt-get install clang-format--

Tips: first use :checkhealth to impress your development is OK

  • ERROR: npm: not available
  • ERROR: node: not available

    npm i -g neovim

  • WARNING: pip3: not available
  • WARNING: curl: not available
  • WARNING: tree-sitter executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
  • WARNING: telescope: require("telescope.health").check()
  • ERROR: rg: not found. live-grep finder will not function without BurntSushi/ripgrep installed.

    sudo apt install ripgrep

  • WARNING: fd: not found. Install sharkdp/fd for extended capabilities

配置导入

确保环境能连接上github,直接clone配置仓库到:~/.config/nvim

git clone https://github.com/tmingjun/nvim-for-xiaotan.git ~/.config/nvim

插件安装&使用

安装

直接在终端输入nvim,打开neovim,输入:ParckerSync,可安装所有插件.

tips: 该命令需要区github上clone插件代码,国内访问速度慢经常会出现安装失败的情况,需要多试几次, 也可以尝试快速访问github的方法,目前我使用的是fastgithub,使用方法官网上有介绍.

插件

common plugins

Colorschemes plugins

cmp plugins

snippets plugins

LSP plugins

Telescope plugins

Treesitter plugins

Git plugins

tmux plugins

问题修复

markdow-preview.nvim 无法预览问题
由于安装插件时候开启了fastgithub代理工具导致其他工具无法经过代理去github下载文件,故关闭fastgithub。

cd ~/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim/app/
./install.sh
  1. neovim 系统剪切板无法共享到neovim内部
    安装 xclip

    sudo apt-get install -y xclip

  2. font install,to support the icons, i choose the FriaCode

    https://www.nerdfonts.com/