nvim
nvim copied to clipboard
config for neovim
NEOVIM CONFIG WITH PURE LUA
Prerequisite
- neovim 0.5 for lua support and native-lsp support
- bat for preview text in telescope search dialog
- fd for find files by file name
- ripgrep for find files by contents in files
- patched fonts. (e.g. nerd-fonts)
Installation
- install packer.nvim via
git clone https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim - clone this repo to personal neovim config folder (e.g. $HOME/.config/nvim)
- launch neovim via command
nvim - invoke command
:PackerSyncin neovim and wait for plugin installings - relaunch neovim and the treesitter plugin will automatically download all matained json files for better highlighting.
- for LSP supports, you need to install different lsp servers by yourself and add them to
init-lspconf.lua
LSP servers
I'm currently using Archlinux with paru as my AUR helper. For installing language servers, you can use scripts below.
sudo pacman -S clang
sudo pacman -S pyright
sudo pacman -S lua-language-server
sudo pacman -S bash-language-server
paru -S jdtls