summary refs log tree commit diff stats
path: root/users/sils/neovim/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--users/sils/neovim/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/users/sils/neovim/default.nix b/users/sils/neovim/default.nix
new file mode 100644
index 0000000..2ac065c
--- /dev/null
+++ b/users/sils/neovim/default.nix
@@ -0,0 +1,41 @@
+{
+  programs.neovim = {
+    enable = true;
+    defaultEditor = true;
+    viAlias = true;
+    vimAlias = true;
+    vimdiffAlias = true;
+    extraLuaConfig = ''
+      local set = vim.opt;
+
+      set.autoindent = true;
+      set.cindent = true;
+      set.incsearch = true;
+      set.ignorecase = true;
+      set.smartcase = true;
+      set.showmatch = true;
+      set.hlsearch = false;
+
+      set.mouse = "";
+      set.number = true;
+      set.relativenumber = true;
+      set.shell = zsh;
+
+      set.spell = true;
+      set.spelllang = "en_us,de_de";
+      set.spelloptions = "camel";
+
+      set.syntax = "ON";
+
+      set.shiftwidth = 2;
+      set.tabstop = 2;
+      set.expandtab = true;
+      set.so = 999;
+
+    '';
+    extraConfig = ''
+      inoremap jj <esc>
+      vnoremap jj <esc>
+    '';
+  };
+}