33 lines
938 B
Markdown
33 lines
938 B
Markdown
# neovim config
|
|
I like neovim.
|
|
|
|
## installation
|
|
```bash
|
|
# install neovim 0.11+
|
|
sudo add-apt-repository ppa:neovim-ppa/unstable -y
|
|
sudo apt update
|
|
sudo apt install neovim -y
|
|
|
|
# install dependencies
|
|
sudo apt install git ripgrep build-essential nodejs npm xclip -y
|
|
sudo npm install -g pyright
|
|
|
|
# clone contents of this repo to ~/.config/nvim/
|
|
git clone https://gitea.jovan04.com/evan/neovim-config ~/.config/nvim
|
|
|
|
# set up clipboard integrations
|
|
sudo mkdir -p /usr/local/bin
|
|
sudo printf '#!/bin/bash \nxclip -selection clipboard' | tee /usr/local/bin/pbcopy
|
|
sudo chmod a+x /usr/local/bin/pbcopy
|
|
sudo printf '#!/bin/bash \nxclip -selection clipboard -o' | tee /usr/local/bin/pbpaste
|
|
sudo chmod a+x /usr/local/bin/pbpaste
|
|
```
|
|
don't forget to set up an `alias nv='nvim'`
|
|
|
|
## includes
|
|
- Lazy.nvim plugin manager
|
|
- treesitter syntax highlighting (with auto-install)
|
|
- nvim-lspconfig
|
|
- pyright language server
|
|
- keybindings (mostly LSP-related)
|