wayjam / vim-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NeoVim Config

License: MIT GitHub repo size

Modern NeoVim config.

Prerequisites

  • NeoVim(0.8+)

Installation

Clone this repo and put it to ~/.config/nvim :

mkdir -p ~/.config
cd ~/.config
git clone https://github.com/wayjam/vim-config.git nvim

Note: Symlink for "regular" vim: ln -s ~/.config/nvim ~/.vim

Feature

Plugin Manager

Using lazy.nvim as plugin manager.

Update Plugin(the plugins are not updated automatically):

:Lazy

LSP && Dap && Formatter

Using the Neovim's built-in language server client with nvim-lspconfig, and you can install lsp server with Mason:

:Mason

Complete

Configured nvim-cmp with LusSnip and friendly-snippets.

Customize

Lua file in customize/before will source before all pre-configured plugins, Lua file in customize/after will source after all pre-configured plugins.

Upgrade

cd ~/.config/nvim
git pull --ff --ff-only

Troubleshooting

treesitter compile: error trying to exec 'cc1plus': execvp: No such file or directory

Just get g++ installed and then treesitter works.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

License:MIT License


Languages

Language:Lua 98.3%Language:Vim Script 1.7%