From 80006f82905f2567c895cf8737aaf3bf07f9668b Mon Sep 17 00:00:00 2001 From: Linnnus Date: Tue, 5 Sep 2023 20:38:32 +0200 Subject: Lots of stuff --- use-cases/development/neovim/default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 use-cases/development/neovim/default.nix (limited to 'use-cases/development/neovim/default.nix') diff --git a/use-cases/development/neovim/default.nix b/use-cases/development/neovim/default.nix new file mode 100644 index 0000000..5c265b8 --- /dev/null +++ b/use-cases/development/neovim/default.nix @@ -0,0 +1,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 -- cgit v1.2.3