summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-06-18 12:28:40 +0200
committersils <sils@sils.li>2023-06-18 12:29:24 +0200
commit9defda67f04de4761a3179e45039ed572972c3b9 (patch)
tree286f0664e58e3490c39fba62b01ec39773c99e4c
parentFix(u/sils/packages): Add xdg-utils, git-crypt; Remove neovim (diff)
downloadnix-config-9defda67f04de4761a3179e45039ed572972c3b9.tar.gz
nix-config-9defda67f04de4761a3179e45039ed572972c3b9.zip
Feat(u/sils): Add neovim config
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>
+    '';
+  };
+}