diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..08b4293 --- /dev/null +++ b/README.md | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | # My Neovim Config | ||
| 2 |  | ||
| 3 | |||
| 4 | ### Introduction | ||
| 5 | Run checkhealth in your Neovim | ||
| 6 | ```vim | ||
| 7 | :checkhealth | ||
| 8 | ``` | ||
| 9 | Make sure you analyzed the output properly: | ||
| 10 | - Your neovim must be >= 0.7.0 to run this config | ||
| 11 | - You need to setup [Packer](https://github.com/wbthomason/packer.nvim) | ||
| 12 | ```vim | ||
| 13 | git clone --depth 1 https://github.com/wbthomason/packer.nvim\ | ||
| 14 | ~/.local/share/nvim/site/pack/packer/start/packer.nvim | ||
| 15 | ``` | ||
| 16 | - You should install global python provider | ||
| 17 | ```python | ||
| 18 | pip install pynvim | ||
| 19 | ``` | ||
| 20 | - You should install clipboard tool (I use xclip but you can use something diffrent) | ||
| 21 | |||
| 22 | ### Installation | ||
| 23 | > Easy way | ||
| 24 | |||
| 25 | You can just clone this repo to your .config folder | ||
| 26 | |||
| 27 | ```bash | ||
| 28 | git clone https://github.com/dsrcr/nvim ~/.config | ||
| 29 | ``` | ||
| 30 | > Recommended way | ||
| 31 | |||
| 32 | I use gnu-stow to manage my dotfiles, so I encourage you to use it too. | ||
| 33 | |||
| 34 | Use your package manage of choice to get stow, for example: | ||
| 35 | |||
| 36 | ```bash | ||
| 37 | paru -S stow | ||
| 38 | ``` | ||
| 39 | Clone this repo to your prefered dir and use stow to symlink | ||
| 40 | |||
| 41 | In order to do this you need an empty nvim directory in your .config folder | ||
| 42 | ```bash | ||
| 43 | cd ~/.config | ||
| 44 | mkdir nvim | ||
| 45 | cd ~/yourDirectory | ||
| 46 | git clone https://github.com/dsrcr/nvim | ||
| 47 | stow -d ~/yourDirectory -t ~/.config/nvim nvim/ | ||
| 48 | |||
| 49 | ``` | ||
| 50 | |||
| 51 | The last step is running this command in your neovim | ||
| 52 | |||
| 53 | ```vim | ||
| 54 | :PackerSync | ||
| 55 | ``` | ||
| 56 | This command should pull everything you need | ||
| 57 | |||
| 58 | In the next step you will encounter a lot of errors, but don't worry about it. | ||
| 59 | Packer needs to pull specific plugins and then you need to install Treesitter's support for specific filetypes eg. lua, rust.... etc. | ||
| 60 | ```bash | ||
| 61 | :TSUpdate | ||
| 62 | ``` | ||
| 63 | ```bash | ||
| 64 | :TSInstall | ||
| 65 | ``` | ||
| 66 | |||
