Personal set up for Neovim v 0.10.x on macOS & Ubuntu.
Follows the instruction of the Hombrew site
To use a Node version manager, like fnm Then install the Neovim node support package,
npm install -g neovim
To use a Python version manager, like Pyenv Then install the Neovim node support package,
pip install pynvim
On macOS run,
brew install rust
On Ubuntu follow the steps on the following page
This a Lua formatter, to install it run,
cargo install stylua
Note: Make sure to follow the post-installation instruction.
This a Git UI for terminals, to install it on macOS run,
brew install Lazygit
To install it on Ubuntu follow the instructions on the following page
Build the 0.10.x version, check the Github page for instructions.
- Clone the repo
git clone https://github.com/diegognt/neovim-setup.git neovim-setup
- Go to the directory.
cd neovim-setup
- Run:
ln -s "$(pwd)" ~/.config/nvim
For Python, makes sure to set up the provider using a virtualenv, follows the following steps,
Installs pyenv
and pyenv-virtualenv
, run on mac brew install pyenv pyenv-virtualenv
pyenv install <python-version>
pyenv virtualenv <python-version> py3nvim
pyenv activate py3nvim
python -m pip install pynvim neovim
pyenv which python # save the path
Go to ./lua/diegognt/options.lua
and assign the python path to the vim.g.python3_host_prog
field.
- When using Iterm, go to
Profiles
>Keys
and remap theRight Option Key
to "Esc+".
- Once copilot is running, run :Copilot auth to start the authentication process.
- Make sure you have
curl
installed. - Set environment variable called
$OPENAI_API_KEY
which you can obtain here. <lead>A a
command which opens a prompt selection from Awesome ChatGPT Prompts to be used with thegpt-3.5-turbo
model.
- Neovim from scratch For all the guidance and inspiration.