Skip to content

My neovim config (forked but with major changes :))

License

Notifications You must be signed in to change notification settings

krshrimali/nvim

 
 

Repository files navigation

My NeoVim Config

This is a heavily modified forked from ChristianChiarulli's neovim. You can start-off with my config, and build something of your own from there, but ideally, you should always try writing your own. Using neovim, as TJ DeVries says, usually becomes a PDE (Personal Development Environment). This config, just like any other config, is heavily personalized.

Key mappings

  • The leader key is space, and to open whichkey immediately, press: Ctrl + Space.
  • To open all the available keymaps, press: "Ctrl + Space" -> "f" -> "k" (you should also see the options you are selecting)

Changes from the fork

I wanted to create this as a standalone repo instead of a fork so that people can create issues if they are stuck. However, it will be unfair on the main author (ChristianChiarulli), as I also make sure to merge with his up-stream repo, whenever I find something that is new to me. So this repository will be a fork until I'm very happy with what I have, and once it diverges from upstream. Please follow the commits here to follow the changes I've made to the original fork. The biggest of those should be: adding my own plugin: AutoRunner 💙 . It's in a beta release, but feel free to test it out.

Try out this config

Make sure to remove or move your current nvim directory

git clone git@github.com:krshrimali/nvim.git ~/.config/nvim

If you don't have neovim installed, there is a very useful script (comes from up-stream) that lets you install neovim: ./install_neovim.sh.

Run nvim and wait for the plugins to be installed

NOTE: (You will notice treesitter pulling in a bunch of parsers the next time you open Neovim)

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

Next we need to install python support (node is optional)

  • Neovim python support

    pip install pynvim
  • Neovim node support

    npm i -g neovim

Fonts

After moving fonts to ~/.local/share/fonts/

Run: $ fc-cache -f -v

NOTE: (If you are seeing boxes without icons, try changing this line from false to true: link)

Install latest rust-analyzer binary

mkdir -p ~/.local/bin
curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-unknown-linux-gnu.gz | gunzip -c - > ~/.local/bin/rust-analyzer
chmod +x ~/.local/bin/rust-analyzer

About

My neovim config (forked but with major changes :))

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 96.0%
  • Vim Script 3.3%
  • Shell 0.7%