Skip to content
My current neovim configs
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
colors
.gitignore
LICENSE
README.md
coc-settings.json
coc-settings.vim
efm-config.yml
functions.vim
init.vim
mappings.vim
plugins.vim

README.md

neovim-configs

PreRequisites

This is basically my ~/.config/nvim directory

I'm running the nightly build of neovim (ppa)

Plain neovim is nice, but there are many different UI's available The GUI I'm currently using is neovim-gtk

Setup

I remember doing quite a few things and I know most of the things were from following various instructions for setting up plugins and/or metals but here are some of the things I do remember:

metals

The instructions for setting up metals gives a similar command line to this for grabbing the jar, but I already have coursier, like to keep it in ~/bin and frequently update to the latest SNAPSHOT so I use this script instead:

#!/bin/bash
# https://scalameta.org/metals/docs/editors/vim.html#installing-vim

# default=0.5.2
current="0.5.2+9-f28c35ac-SNAPSHOT"
default="${version:-"${current}"}"

scala=2.12
version="${version:-$default}"
repo="sonatype:releases"
if [[ "${version}" == *SNAPSHOT* ]]; then
  repo="sonatype:snapshots"
fi

coursier bootstrap \
  --java-opt -Xss4m \
  --java-opt -Xms100m \
  --java-opt -Dmetals.client=coc.nvim \
  "org.scalameta:metals_${scala}:${version}" \
  -r bintray:scalacenter/releases \
  -r "${repo}" \
  -o ~/bin/metals-vim -f

pyenv

Followed some tips from this posting, to install the neovim plugin for both python 2.x and 3.x

pyenv virtualenv 2.7.16 neovim2
pyenv virtualenv 3.6.8 neovim3

pyenv activate neovim2
pip install neovim
pyenv which python  # Note the path

pyenv activate neovim3
pip install neovim
pyenv which python  # Note the path

things I'm forgetting

TODO

Language Servers

For an LSP client, I'm using coc.nvim

I will likely add others but metals is what drew my interest into LSP/vim to see what it was like.

Scala

For Scala, I'm using metals

You can’t perform that action at this time.