NOTE: This is a mirror and may be out of date. I suggest you check out sourcehut
A super simple Nix flake for a highly reproducible Neovim. The goal of this configuration is to be able to have a consistent, stable Neovim configuration that will always have its dependencies satisfied.
Thanks to PrimaMateria for the article on how to do this:
- Built-in LSP support for Java (JDTLS), JavaScript/TypeScript, HTML/CSS, Vue3 and some other stuff, too.
- Debug adapter support for Java
- Built-in tree-sitter parsers for numerous languages.
- Rich Markdown editing, powered by tree-sitter, Mkdnflow and ZK
You can run this nix flake on the CLI executing nix run sourcehut:~trevdev/nvim-nix
. You could create a shell alias and stop worrying
about installing the flake altogether:
nvim = "nix run sourcehut:~trevdev/nvim-nix --";
Alternatively you could clone the source code and run it from your local
machine. This will give you the ability to change things with ease: nix run /path/to/nvim-nix
;
If you're using home manager, you may just add this flake as an input and add it to whatever package manifest you may have.
let
nvim-nix = (builtins.getFlake "sourcehut:~trevdev/nvim-nix")
.packages.x86_64-linux.default;
in {
home.packages = [ nvim-nix ]; # along with your other packages
}