A starting point for neovim that is:
- Small (~325 lines)
This repo is meant to be used as a starting point for a user's own configuration; remove the things you don't use and add what you miss.
See the wiki for additional tips, tricks, and recommended plugins.
- Backup your previous configuration
- Copy and paste the defaults.nvim
- start neovim (
nvim) and run
:PackerInstall, ignore any error message about missing plugins,
:PackerInstallwill fix that shortly.
- restart neovim
Running via nix (optional)
Nix is a functional package manager, that affords reproducibility similar to a container. This repo bundles a nix-shell, which includes the latest version of neovim, along with several language servers. This is entirely optional, and is just a convenient way to manage language-servers and other tools (fd, ripgrep, etc.).
- Install nix
$ sh <(curl -L https://nixos.org/nix/install) --daemon
- Clone this repository:
$ git clone https://github.com/mjlbach/defaults.nvim.git && cd defaults.nvim
- Start the shell
$ nix-shell $ nix develop # if on nixUnstable
Pull-requests are welcome. The goal of this repo is not to create a neovim configuration framework, but to offer a starting template which instructs users on the available features. Some things that will not be included:
- Automatic management of language server installation (for that, there is the nix shell)
- Custom language server configuration (efm templates)
- Theming beyond a default colorscheme necessary for LSP highlight groups
- lazy-loading is an anti-pattern (IMO), and frequently breaks plugins. Defaults.nvim should start within 50 ms on modern hardware. Contribute to upstream plugins to optimize startup time instead.
Each PR, especially those which increase the line count, should have a description as to why the PR is necessary.