GithubHelp home page GithubHelp logo

nvimrc's Introduction

README

Install

cd ~/.config
git clone [email protected]:mangege/nvimrc.git nvim

# pacman -S ripgrep tree-sitter-cli
# apt install -y ripgrep

nvim

Nerd Font

  1. Download a Nerd Font
  2. Unzip and copy to ~/.fonts
  3. Run the command fc-cache -fv to manually rebuild the font cache

LSP

使用 mason 安装 Lsp 服务端, 但不使用 mason-lspconfig.nvim 配置,因为与 nvim-cmp 不兼容,所以采用自己手动配置.

rubocop 与 ruby-lsp 需要添加到 Gemfile 开发组里,主要还有 rubocop-rails 与 ruby-lsp-rails 通过 mason 安装无法集成.

nvim --headless -c "MasonInstall pyright html-lsp lua-language-server typescript-language-server eslint-lsp json-lsp css-lsp" -c qall

Format

原 LSP 不支持格式化时,再使用 efm lsp 来格式化

eruby 使用 efm lsp 来格式化,且在 efm 配置 htmlbeautifier .

nvim --headless -c "MasonInstall efm htmlbeautifier prettier black isort" -c qall

Ruby Gemfile

gem 'rubocop', require: false
gem 'rubocop-rails', require: false
gem 'ruby-lsp', require: false
gem 'ruby-lsp-rails', require: false

LSP 选择参考:

nvimrc's People

Contributors

mangege avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.