Skip to content

Latest commit

 

History

History
157 lines (100 loc) · 3.88 KB

File metadata and controls

157 lines (100 loc) · 3.88 KB

💤 LazyVim

personal neovim settings based on the starter template for LazyVim. Refer to the documentation to get started.

Install

Windows

git clone https://github.com/mizma/nvimrc.git %LOCALAPPDATA%\nvim && nvim

Some pre-requisites should be installed as well.

choco install llvm zig ripgrep git lazygit fd

Fonts

Install Nerdfont compatible fonts. For Japanese support, HackGen NF can be used.

You can install using chocolatey in Windows.

choco install font-hackgen-nerd

On Arch, install aur package ttf-hackgen

yay -Sy ttf-hackgen

Arch Linux

git clone https://github.com/mizma/nvimrc.git ~/.config/nvim && nvim

Plugins

Only notable changes to the LazyVim is described below.

im-select

Replaced with zenhan for windows usage. May be added in future for Linux/MacOS

Pre-requisite

im-select must be installed prior to use.

treesitter

For Windows

Prerequisite is to install clang or zig compilers.

choco install llvm
choco install zig

Compiler option is overridden.

theme

spzenhan

spzenhan.exe must be available in the %PATH%.

References

Resources I refered to other than the plugin documents are as follows.

Windows context menu

To add context menu, use the following (edited to be compatible with chocolaty neovim install). Original registry is here

Windows Registry Editor Version 5.00



;; Neovim-Qt

[HKEY_CLASSES_ROOT\*\shell\nvim-qt]
@="Edit with Neovim-Qt"
"Icon"="\"C:\\tools\\neovim\\nvim-win64\\bin\\nvim-qt.exe\""

[HKEY_CLASSES_ROOT\*\shell\nvim-qt\command]
@="\"C:\\tools\\neovim\\nvim-win64\\bin\\vim-qt.exe\" \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\nvim-qt]
@="Open with Neovim-Qt"
"Icon"="\"C:\\tools\\neovim\\nvim-win64\\bin\\nvim-qt.exe\""

[HKEY_CLASSES_ROOT\Directory\shell\nvim-qt\command]
@="\"C:\\tools\\neovim\\nvim-win64\\bin\\nvim-qt.exe\" \"%1\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\nvim-qt]
@="Open Neovim-Qt here"
"Icon"="\"C:\\tools\\neovim\\nvim-win64\\bin\\nvim-qt.exe\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\nvim-qt\command]
@="\"C:\\tools\\neovim\\nvim-win64\\bin\\nvim-qt.exe\" \"%v\""


;; NeoVim

[HKEY_CLASSES_ROOT\*\shell\nvim]
@="Edit with Neovim"
"Icon"="\"C:\\tools\\neovim\\nvim-win64\\bin\\nvim-qt.exe\""

[HKEY_CLASSES_ROOT\*\shell\nvim\command]
@="wt -p \"Windows PowerShell\" --title Neovim C:\\tools\\neovim\\nvim-win64\\bin\\nvim.exe \"%1\""

[HKEY_CLASSES_ROOT\directory\shell\nvim]
@="Open with Neovim"
"Icon"="\"C:\\tools\\neovim\\nvim-win64\\bin\\nvim-qt.exe\""

[HKEY_CLASSES_ROOT\directory\shell\nvim\command]
@="wt -p \"Windows PowerShell\" --title Neovim C:\\tools\\neovim\\nvim-win64\\bin\\nvim.exe \"%v\""

[HKEY_CLASSES_ROOT\directory\background\shell\nvim]
@="Open Neovim here"
"Icon"="\"C:\\tools\\neovim\\nvim-win64\\bin\\nvim-qt.exe\""

[HKEY_CLASSES_ROOT\directory\background\shell\nvim\command]
@="wt -p \"Windows PowerShell\" --title Neovim C:\\tools\\neovim\\nvim-win64\\bin\\nvim.exe \"%v\""