https://github.com/kryptxbsa/nvim
https://github.com/kryptxbsa/nvim
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kryptxbsa/nvim
- Owner: KryptXBSA
- License: gpl-3.0
- Created: 2022-09-21T08:50:39.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-13T12:47:52.000Z (almost 3 years ago)
- Last Synced: 2024-10-26T23:43:55.946Z (about 1 year ago)
- Language: Lua
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Neovim from scratch
**Update** When I initially created this repo I didn't anticipate the amount of breaking changes, if you'd like to use the same basic config as this one as a base I recommend my new repo: [nvim-basic-ide](https://github.com/LunarVim/nvim-basic-ide)
**Another Update** This repo is updated to work with Neovim 0.8. All packages are pinned in `master` so it should remain stable. Branches will be updated eventually.
Each video will be associated with a branch so checkout the one you are interested in, you can follow along with this [playlist](https://www.youtube.com/watch?v=ctH-a-1eUME&list=PLhoH5vyxr6Qq41NFL4GvhFp-WLd5xzIzZ).
## Try out this config
Make sure to remove or move your current `nvim` directory
**IMPORTANT** Requires [Neovim v0.8.0](https://github.com/neovim/neovim/releases). Please [upgrade](#upgrade-to-latest-release) if you're on an earlier version.
```
git clone https://github.com/LunarVim/Neovim-from-scratch.git ~/.config/nvim
```
Run `nvim` and wait for the plugins to be installed. (You will notice treesitter pulling in a bunch of parsers the next time you open Neovim)
**NOTE** [Mason](https://github.com/williamboman/mason.nvim) is now used to install and manage LSP servers, DAP servers, linters, and formatters via the `:Mason` command.
## Get healthy
Open `nvim` and enter the following:
```
:checkhealth
```
You'll probably notice you don't have support for copy/paste also that python and node haven't been setup
So let's fix that
First we'll fix copy/paste
- On mac `pbcopy` should be builtin
- On Ubuntu
```
sudo apt install xsel
```
- On Arch Linux
```
sudo pacman -S xsel
```
- Wayland users
[wl-clipboard](https://github.com/bugaevc/wl-clipboard)
Next we need to install python support (node is optional)
- Neovim python support
```
pip install pynvim
```
- Neovim node support
```
npm i -g neovim
```
---
**NOTE** make sure you have [node](https://nodejs.org/en/) installed, I recommend a node manager like [fnm](https://github.com/Schniz/fnm).
### Upgrade to latest release
Assuming you [built from source](https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start), `cd` into the folder where you cloned `neovim` and run the following commands.
```
git pull
make distclean && make CMAKE_BUILD_TYPE=Release
git checkout v0.8.0
sudo make install
nvim -v
```
> The computing scientist's main challenge is not to get confused by the complexities of his own making.
\- Edsger W. Dijkstra