Skip to content

mhxie/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Personal Neovim Configuration

Supported Language: C/C++, Rust, Python3

Prerequisites

Basic

  • neovim 0.9.0

    git clone https://github.com/neovim/neovim.git && cd neovim
    git checkout v0.9.0 && make CMAKE_BUILD_TYPE=RelWithDebInfo
    sudo make install
    

    or

    sudo apt-get install neovim // Termux
    
  • paq-nvim

    git clone --depth=1 https://github.com/savq/paq-nvim.git \
    "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/paqs/start/paq-nvim
    
    // in fish
    git clone --depth=1 https://github.com/savq/paq-nvim.git \
    "$HOME/.local/share"/nvim/site/pack/paqs/start/paq-nvim
    
  • deoplete.nvim

    pip3 install --user pynvim
    :UpdateRemotePlugin
    
  • telescope.nvim

    # sudo apt-get install ripgrep
    curl -LO https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep_13.0.0_amd64.deb
    sudo dpkg -i ripgrep_13.0.0_amd64.deb
    
    sudo apt-get install fd-find
    

Installation

cd ~/.config
git clone https://github.com/mhxie/nvim.git
nvim
:PaqInstall
-------Helpful Commands-------
:CheckHealth // troubleshoot any loading issues
:PaqUpdate
:PaqSync  // do PaqInstall PaqUpdate PaqClean at once
:TSUninstall all // uninstall all parsers when updated
----------------------------

Language Servers & Linters

  • rust-analyzer & rustfmt

    git clone https://github.com/rust-analyzer/rust-analyzer.git && cd rust-analyzer
    cargo xtask install --server
    
    # if failed or not work, update your rust to the latest release
    rustup toolchain install stable
    
    # install with pkg manager on termux
    pkg install rust-analyzer
    
  • ccls & clang-format

    git clone https://github.com/MaskRay/ccls.git && cd ccls
    sudo apt install clang cmake libclang-dev llvm-dev rapidjson-dev
    cmake -H. -BRelease
    cmake --build Release
    cd Release && sudo make install
    

    or

    sudo apt install ccls // debian
    sudo apt-get install clang-format
    
    # install with pkg manager on termux
    pkg install ccls
    
  • python-language-server & black

    pip install "python-lsp-server[all]"
    

TODO

  • more language support (YAML, TOML, HTML ...)
  • add code analysis tools (e.g. facebook infer)

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages