pyk's personal nvim setup based on NVChad.
Install neovim using the following command:
brew install neovimSetup configuration using the following command:
git clone git@github.com:pyk/nvim.git ~/.config/nvimInstall required dependencies using the following command:
brew install ripgrepOverview:
masonis used to install external dependencies such as LSP, linter and formatter binarymason-lspconfigis a package manager dedicated for LSPnvim-lspconfigis used to run installed LSP server (e.g. tsserver)nvim-lintis used to run linter (e.g. eslint)
Actions:
- Add/remove LSP in ./lua/custom/configs/lspconfig.lua
- Add new linter in ./lua/custom/plugins.lua (masin
ensure_installed) - Use the linter via ./lua/custom/configs/lint.lua
- Add new formatter in ./lua/custom/plugins.lua (masin
ensure_installed) - Use the formatter via ./lua/custom/configs/lint.lua
Info:
- Don't forget to restart and run
:MasonInstallAllafter adding new lsp, linter or formatter.
Keyboard shortcuts:
CTRL+nopen file explorerCTRL+w wto switch window (e.g. tree view explorer with editor)Tabto switch between open files<SPACE>thto switch theme
Reset installation:
rm -rf ~/.local/share/nvim