https://github.com/erikkrieg/envim
envim is Erik's Neovim configuration
https://github.com/erikkrieg/envim
lua neovim nix nix-flake nvim
Last synced: 3 months ago
JSON representation
envim is Erik's Neovim configuration
- Host: GitHub
- URL: https://github.com/erikkrieg/envim
- Owner: erikkrieg
- Created: 2022-07-25T02:53:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-10-20T04:31:56.000Z (6 months ago)
- Last Synced: 2025-10-20T04:37:00.544Z (6 months ago)
- Topics: lua, neovim, nix, nix-flake, nvim
- Language: Lua
- Homepage:
- Size: 150 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Envim (Erik's nvim)
Terminal-first development and source controlled configuration with [Neovim](https://github.com/neovim/neovim) and a splash of [Nix](https://nixos.org/guides/how-nix-works.html).
## Usage
Envim is available as a [nix flake](https://nixos.wiki/wiki/flakes) and is best installed with a something like [Nix Home Manager](https://github.com/nix-community/home-manager). Here's the Nix configuration I use: https://github.com/erikkrieg/eksys
There are a few other nix-y ways to run envim without installing it at the system or user level.
Build and run envim with [nix run](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-run.html):
```sh
nix run github:erikkrieg/envim
```
While in the root of the envim directory [run in a new shell containing the build environment](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-develop.html):
```sh
nix develop
```
### Grammar support with LSP
The [`ltex` LSP server](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ltex) supports language models that can be used to suggest fixes for more nuanced grammar issues. These models are rather large, so I opted to exclude packaging it directly. While the model is missing, the ltex lsp server still works, but to get more capabilities you can download [ngrams](https://dev.languagetool.org/finding-errors-using-n-gram-data.html) and unzip the model at `~/models/ngrams`.
> Unzip it and put it in its own directory named en, de, fr, or es, depending on the language. The path you need to set in the next step is the directory that the en etc. directory is in, not that directory itself.
So, in my case I have `~/models/ngrams/en`.