See docs/vscode.md for the VS Code Neovim profile and its
matching VS Code settings.
Clone this repository as Neovim's config directory:
git clone https://github.com/merrkry/nvim ~/.config/nvimOn Windows, clone it to %LOCALAPPDATA%\nvim instead.
Install from lockfile, useful when syncing configs:
nvim --headless "+Lazy! restore" +qa
Note that if plugins were added/removed, lockfile will be updated before the execution of this command. You need to reset the lockfile and execute again.
Update without entering UI:
nvim --headless "+Lazy! sync" +qa
Run Neovim with a checkout as the config of the nvim-dev appname, which keeps
its plugins and state apart from the installed config:
mise run dev
mise run dev -- some-fileThe task links $XDG_CONFIG_HOME/nvim-dev to the checkout and sets only
NVIM_APPNAME; it leaves the XDG_* variables inherited by LSP servers and
other child processes unchanged. Remove the data, cache, and state of an appname
explicitly:
mise run clean nvim-devclean removes a linked config, and keeps a config directory such as a clone.
Run mise run update-plugins to update the nvim-dev plugins and refresh
lazy-lock.json in the checkout.
Keep editor settings in lua/config/. Implement repository-owned features in
local/ and configure them through lazy.nvim specs in lua/plugins/local.lua.