Skip to content

ColinKennedy/onefile.nvim

Repository files navigation

This is a "no plugins" Neovim configuration. You run it by calling:

Install

In-place Install

Get the path where Neovim loads from by calling this:

nvim --clean --headless --cmd 'lua print(vim.fn.stdpath("config"))' --cmd 'quit'

Linux: ~/.config/nvim

Copy the init.lua to that directory.

cp ./init.lua `nvim --clean --headless --cmd 'lua print(vim.fn.stdpath("config"))' --cmd 'quit'`

Side-loaded Install

If you have an existing Neovim configuration that you don't want to touch, you can "try out" this configuration by doing ...

root=`nvim --clean --headless --cmd 'lua print(vim.fn.stdpath("config"))' --cmd 'quit'`
parent=`dirname $root`
mkdir -p $parent/noplugins
cp ./init.lua $parent/noplugins/init.lua

This will create a separate Neovim app directory, located at ~/config/noplugins (or wherever your $XDG_CONFIG_HOME is set to)

Now run it with

NVIM_APPNAME=noplugins nvim

Environment Variables

VIM_LOG_LEVEL sets the minimum vim.notify level shown by Neovim. It defaults to 2, which hides DEBUG notifications unless you opt in with a lower value.

VIM_ENABLE_NOTIFY_LOGGING enables notification logging when set to a non-zero value. When enabled, notifications are appended to a temporary log file that can be opened with :OpenLogPath.

Testing

eval $(luarocks path --lua-version 5.1 --bin)
make test
# or
busted .

About

One file. One Neovim configuration

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages