summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--users/sils/default.nix3
-rw-r--r--users/sils/neovim/default.nix41
2 files changed, 43 insertions, 1 deletions
diff --git a/users/sils/default.nix b/users/sils/default.nix
index 33d5619..ebc3b0d 100644
--- a/users/sils/default.nix
+++ b/users/sils/default.nix
@@ -1,10 +1,11 @@
-{...}: {
+{hyprland, ...}: {
   imports = [
     ./direnv
     ./git
     ./gpg
     ./grades
     ./mako
+    ./neovim
     ./packages
     #./river #TODO Update Shell Library
     #./yambar #TODO Update Shell Library
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>
+    '';
+  };
+}