A simple Nix flake for running Neovim
- Lua 62%
- Nix 38%
| config | Reapply "fix: jdtls with lombok" | |
| packages | feat: use stable, add conjure | |
| .gitignore | feat: nvim-nix | |
| flake.lock | update: deps | |
| flake.nix | feat: use stable, add conjure | |
| plugins.nix | update: deps | |
| README.md | feat: bring zk back | |
| runtimeDeps.nix | feat: add clojure-lsp | |
| tree-sitter.nix | chore: remove norg tresitter | |
A Neovim Flake
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:
Features
- 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
Usage
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;
With home-manager
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
}