summaryrefslogtreecommitdiff
path: root/home/neovim/default.nix
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2023-09-07 16:53:41 +0200
committerLinnnus <[email protected]>2023-09-07 16:53:41 +0200
commitedcc3acea595d3045253c3c2fe2462599c1c54e0 (patch)
tree81e17fc5fe4f0a52d30e8d0209c6080cc77eda32 /home/neovim/default.nix
parentd31d1bae8c38e145cdbafe105401d9528b416779 (diff)
Reorganize everything
Diffstat (limited to 'home/neovim/default.nix')
-rw-r--r--home/neovim/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/home/neovim/default.nix b/home/neovim/default.nix
new file mode 100644
index 0000000..883c170
--- /dev/null
+++ b/home/neovim/default.nix
@@ -0,0 +1,27 @@
+# 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!";
+}