Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.9 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.9 KB

neovim-config

I'm a basic user of neovim and here is my config for this charming text editor. I usually work with Julia, C, LaTeX and Python.

My config is inspired by Josean Martinez' YouTube video.

Features

  • LaTeX snippets based on Gilles Castel's post.
  • LaTeX to Unicode completion based on julia-vim, e.g. C \leftarrow<Tab> \alpha<Tab> A B + \beta<Tab> becomes C ← α A B + β C. Activated by <space>uc; active by default in Julia files.
  • Toggle between light and dark themes for readability during screen sharing by :ToggleAppearance.
Light theme Dark theme
light theme preview dark theme preview

How to install

Note

If you want to try out this config, backup (e.g. just rename) your config, clone this repo and add symbolically link with nvim folder of this repo.

  • Copy nvim folder to ~/.config/, e.g. ~/.config/nvim/
  • Change path to python interpreter in nvim/init.lua -> vim.g.python3_host_prog (Tip: use another text editor for this.)
  • Install pynvim for the Python interpreter from vim.g.python3_host_prog
  • If copy-paste from operating system (OS) clipboard does not work, install clipboard manager for your OS (e.g. wl-clipboard for Ubuntu 22.04)

Note

At first run, it is normal to encounter some errors (e.g. "colorscheme not found"). Normally, packer shall run automatically and install plugins.

Tested environments

  • MacOS 14, iTerm2
  • Ubuntu 22.04, built-in Terminal