summaryrefslogtreecommitdiff
path: root/use-cases/development/neovim/default.nix
blob: 5c265b85d2af95305a4b15cd0eeef933a13da41f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This file contains the HM configuration options for Neovim.

{ pkgs, lib, ... }:

{
  imports =
    [
      ./lsp.nix
      ./filetype.nix
    ];

  programs.neovim = {
    enable = true;

    # Typing `vi`, `vim`, or `vimdiff` will also run neovim.
    viAlias = true;
    vimAlias = true;
    vimdiffAlias = true;
  };

  # Set Neovim as the default editor.
  home.sessionVariables.EDITOR = "nvim";
  home.sessionVariables.VISUAL = "nvim";

  # Use neovim as man pager.
  home.sessionVariables.MANPAGER = "nvim +Man!";
}

# vi: foldmethod=marker