Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

amidg/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

22 Commits

Repository files navigation

My NeoVim config:

Neovim config based on lazy.nvim package manager. Can be run on both Linux (default) and macOS. Additionally, Linux environment can be containerized using Distrobox in order to correctly run this in a containerized manner on an immutable Linux OS (e.g. Fedora Silverblue).
Contains the following nvim plugins:

"coc-clangd",
"coc-css",
"coc-diagnostic",
"coc-eslint",
"coc-html",
"coc-json",
"coc-lua",
"coc-prettier",
"coc-toml",
"coc-snippets",
"coc-tsserver",
"coc-yaml",

Installation:

Linux (Native) / macOS:

  1. Install prerequisites:
    Fedora:
sudo dnf install -y neovim \
 nodejs \
 python3 \
 python3-pip \
 git \
 lua \
 luarocks \
 ctags \
 global-ctags
sudo npm install --global yarn
pip3 install --user --upgrade pynvim

macOS:

  • After installing dependencies, set Nerd Font as your default in terminal application (e.g. iTerm2 it is Profiles -> Text -> Font)
  • macOS config uses system-wide python located at /usr/local/bin/python3, not the .pyenv or conda. Please adjust accordingly
brew install \
 ctags \
 universal-ctags \
 node \
 git \
 lua \
 luarocks \
 neovim \
 font-hack-nerd-font
sudo npm install --global yarn
/usr/local/bin/python3 -m pip install --user --upgrade pynvim
  1. Clone repo to ~/.config/nvim
  2. Install neovim via your package manager
  3. Run nvim
  4. Everything is done automatically

Linux (Distrobox):

This installation method provides fully isolated way of running neovim inside the Distrobox (podman) container. Configs are already installed and ready-to-go out of the box.

distrobox create --image ghcr.io/amidg/neovim:latest --name neovim --init-hooks "chmod 777 -R /app"

Alternative: build container from source:

  1. Install prerequisites as shown above.
  2. Clone repo
  3. Execute the following to build:
podman build -t neovim:latest .
distrobox create --image localhost/neovim:latest --name neovim --init-hooks "chmod 777 -R /app"

Alias (DISTROBOX ONLY):

In order to preserve entire neovim environment inside the container, default paths are changed. These variables are changed only inside the container and do not affect user's shell configuration. Default path as stated in documentation:

XDG_CONFIG_HOME=~/.config/nvim
XDG_DATA_HOME=~/.local/share/nvim

New path:

XDG_CONFIG_HOME=/app/nvim
XDG_DATA_HOME=/app/nvim/data

Add this to your shell, e.g. ~/.bashrc:

alias nvim="distrobox enter --additional-flags '--env XDG_CONFIG_HOME=/app/' --additional-flags '--env XDG_DATA_HOME=/app/data' neovim -- nvim"

Based on some work of these people:

About

My personal neovim config. Drop it to the ~/.config/nvim

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /