new vim config
I started from scratch and built up a new Neovim config.
Based on this video series:
- video by
typecraft
(thank you)
Pushed to github here: https://github.com/bartman/nvim-config
about #
So this is what it looks like…
You’ll probably have to install some tools…
1sudo apt install clang clangd npm
You will need neovim 0.10, or at least 0.9 for some of these plugins.
I found building it from source pretty easy on Debian/Ubuntu.
1sudo apt install libgettextpo-dev gettext
2git clone https://github.com/neovim/neovim
3cd neovim
4mkdir -p ~/usr
5make CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_INSTALL_PREFIX=$HOME/usr/neovim
6make install
Note that I installed things in ~/usr/neovim
, which means it needs to go in the PATH.
Alternatively you can make aliases for them in your ~/.bashrc
(or whatever shell you use).
1alias vim=~/usr/neovim/nvim
2alias vi=~/usr/neovim/nvim
3alias vimdiff='~/usr/neovim/nvim -d'
Move the old config out of the way, if you have one…
1mv ~/.config/nvim ~/.config/nvim.old
Then copy over the files under config/nvim
…
1mkdir -p ~/.config/nvim/
2cp -r config/nvim/* ~/.config/nvim/
Start things up…
1nvim
At this point you can run
:Lazy
to check on the nvim packages being installed (q
to close):Mason
to check on diagnostic tools being installed (q
to close)
You can use :WhichKey
to browse through the keyboard shortcuts interactively.
You can also use the ,fk
shortcut to bring up Telescope keymap browser.