/nvim

Primary LanguageLua

Written in lua.

Neovim

Getting StartedPrerequisitesKey FeaturesCreditsRessources

screenshot

Getting Started

⚠️ This will erase you current neovim config!

# Clone this repository
git clone https://github.com/yohannTum/nvim ~/.config/nvim

Note : Only linux is supported.

Prerequisites

Building neovim from source

Installing requirements for Ubuntu / debian :

sudo apt-get install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip curl doxygen

Note : see build-prerequisites if you are using a different distro.


Building neovim from source :

git clone https://github.com/neovim/neovim.git ~/neovim
cd ~/neovim
git checkout release-0.8
make CMAKE_BUILD_TYPE=Release
sudo make install

Note : Official documentation

Binaries

Required binaries :

- pandoc
- java (sdk 17)
- fd
- fzf

Ubuntu :

sudo apt install fd-find openjdk-17-jdk fzf pandoc

Nerdfonts

Setting up a patched nerd font

mkdir -p ~/.local/share/fonts/Source_Code_Pro
cd ~/.local/share/fonts/Source_Code_Pro/
# Choose the font you want from : https://www.nerdfonts.com/font-downloads
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/SourceCodePro.zip
unzip SourceCodePro.zip
sudo fc-cache -f # Refresh fonts

Note : patching your own font : github.com/ryanoasis/nerd-fonts

Enabling it in your terminal (alacritty.yml)

font:
  normal:
    # Font family
    family: SauceCodePro Nerd Font
    style: Regular
  bold:
    family: SauceCodePro Nerd Font
    style: Bold
  italic:
    family: SauceCodePro Nerd Font
    style: Italic
  bold_italic:
    family: SauceCodePro Nerd Font
    style: Bold Italic

Terminal true colors support

Tests to check for true colors :

cd scripts
./24-bit-color.sh
# or
./check_true_color.sh
# should see smooth gradients when running this script in the terminal
# https://jdhao.github.io/2018/10/19/tmux_nvim_true_color/#fn:2
# https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6

Tmux true colors (alacritty?):

# https://jdhao.github.io/2018/10/19/tmux_nvim_true_color/
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB" # tmux 3.2
# set -sa terminal-overrides ',xterm-256color:Tc' # any tmux version

Key Features

  • Colorschemes
    • Gruvbox
  • LSP support for :
    • Next.js (tsserver)
    • Java (jdtls)
    • lua (sumneko_lua)
    • python (pyright)
    • c++ (ccls)
    • dotnet (omnisharp)
    • java tests (jdtls)
    • docker
    • latex
    • vue.js
  • Telescope
  • Whichkey
    • Description not in whichkey config
    • On attach : packer, Telescope...
  • Github
    • git keymaps
    • ui integration
  • nvim-dap
    • Setup
  • null-ls / linter
    • Setup
  • pinned packer's plugins
    • Done
  • Nvim-tree global for all tabs
  • Airline.vim

Credits

Ressources