]> Skullheadx's Git Forge - nixos.git/commitdiff
neovim config
authorSkullheadx <admonty1@protonmail.com>
Fri, 1 May 2026 17:12:13 +0000 (13:12 -0400)
committerSkullheadx <admonty1@protonmail.com>
Fri, 1 May 2026 17:12:13 +0000 (13:12 -0400)
configuration.nix
sh.nix
todo
vim.nix

index 7660ce3aaca7a2a56cc8c3e9b595eda3c4c4c6cb..dddce339d649d70645a2cc666b1bfe281bd0ebc9 100644 (file)
     };
   };
 
-
-
-
-
   programs.steam = {
     enable = true;
     remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
diff --git a/sh.nix b/sh.nix
index 71b06475ebd06d097ef991c67612c57846092a1e..2e280dc1ec18ef8bb3b4ba82bcc46d06bd8d7bae 100644 (file)
--- a/sh.nix
+++ b/sh.nix
@@ -1,4 +1,5 @@
-{config, pkgs, ... }:{
+{ config, pkgs, ... }:
+{
   programs.bash = {
     enable = true;
     interactiveShellInit = ''
@@ -18,7 +19,7 @@
     shellAliases = {
       nix-sw = "sudo nixos-rebuild switch --flake .";
       nix-upd-sl = "sudo nix flake update my-slstatus my-dwm my-surf my-st my-dmenu";
-      
+
     };
   };
 
diff --git a/todo b/todo
index a25da8fc3f78ff4a87cfb84193ff61e77bb6ef80..c212dcc5b4ee0e31d6a3bac790d388d3e008ccf4 100644 (file)
--- a/todo
+++ b/todo
@@ -29,7 +29,7 @@
                - [x] toggable transparency
        - [ ] vim
                - [ ] find a non ai fork? vim classic?
-               - [ ] line nums
+               - [x] line nums
                - [ ] color theme
 
 - [ ] password manager
diff --git a/vim.nix b/vim.nix
index 90db98d418caa595bd6d84c13df607edac13be42..0e81b049eb54f0a53a18069c231124f1f8d0a0c9 100644 (file)
--- a/vim.nix
+++ b/vim.nix
@@ -1,4 +1,4 @@
-{config, pkgs, ... }:
+{ config, pkgs, ... }:
 {
 
   environment.systemPackages = with pkgs; [
         exec ${pkgs.nvi}/bin/vi "$@"
       '';
     })
-    neovim
   ];
 
-
   environment.etc."vimrc".text = ''
-set autoread
-au FocusGained,BufEnter * silent! checktime
+    set autoread
+    au FocusGained,BufEnter * silent! checktime
 
-" :W sudo saves the file
-" (useful for handling the permission-denied error)
-command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
+    " :W sudo saves the file
+    " (useful for handling the permission-denied error)
+    command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
 
-" Turn on the Wild menu
-set wildmenu
+    " Turn on the Wild menu
+    set wildmenu
 
-" Ignore compiled files
-set wildignore=*.o,*~,*.pyc
-set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
+    " Ignore compiled files
+    set wildignore=*.o,*~,*.pyc
+    set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
 
 
-set ruler
+    set ruler
 
-set ignorecase
-set smartcase
-set hlsearch
-set incsearch
-set lazyredraw
-set magic
-set showmatch
+    set ignorecase
+    set smartcase
+    set hlsearch
+    set incsearch
+    set lazyredraw
+    set magic
+    set showmatch
 
-syntax enable
-set noswapfile
+    syntax enable
+    set noswapfile
 
-" Use spaces instead of tabs
-set expandtab
+    " Use spaces instead of tabs
+    set expandtab
 
-" Be smart when using tabs ;)
-set smarttab
+    " Be smart when using tabs ;)
+    set smarttab
 
-" 1 tab == 4 spaces
-set shiftwidth=4
-set tabstop=4
+    " 1 tab == 4 spaces
+    set shiftwidth=4
+    set tabstop=4
 
-" Linebreak on 500 characters
-set lbr
-set tw=500
+    " Linebreak on 500 characters
+    set lbr
+    set tw=500
 
-set ai "Auto indent
-set si "Smart indent
-set wrap "Wrap lines
+    set ai "Auto indent
+    set si "Smart indent
+    set wrap "Wrap lines
 
-" Always show the status line
-set laststatus=2
+    " Always show the status line
+    set laststatus=2
 
-set number relativenumber
+    set number relativenumber
 
 
-  " Force the cursor to a Block when Vim starts
-let &t_ti = &t_ti . "\e[2 q"
-let &t_te = &t_te . "\e[2 q"
-let &t_EI = "\e[2 q"
-let &t_SI = "\e[2 q"
+      " Force the cursor to a Block when Vim starts
+    let &t_ti = &t_ti . "\e[2 q"
+    let &t_te = &t_te . "\e[2 q"
+    let &t_EI = "\e[2 q"
+    let &t_SI = "\e[2 q"
   '';
+
+  programs.neovim = {
+    enable = true;
+    defaultEditor = true;
+    configure = {
+      customRC = ''
+
+        set autoread
+        au FocusGained,BufEnter * silent! checktime
+
+        " :W sudo saves the file
+        " (useful for handling the permission-denied error)
+        command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
+
+        " Turn on the Wild menu
+        set wildmenu
+
+        " Ignore compiled files
+        set wildignore=*.o,*~,*.pyc
+        set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
+
+
+        set ruler
+
+        set ignorecase
+        set smartcase
+        set hlsearch
+        set incsearch
+        set lazyredraw
+        set magic
+        set showmatch
+
+        syntax enable
+        set noswapfile
+
+        " Use spaces instead of tabs
+        set expandtab
+
+        " Be smart when using tabs ;)
+        set smarttab
+
+        " 1 tab == 4 spaces
+        set shiftwidth=4
+        set tabstop=4
+
+        " Linebreak on 500 characters
+        set lbr
+        set tw=500
+
+        set ai "Auto indent
+        set si "Smart indent
+        set wrap "Wrap lines
+
+        " Always show the status line
+        set laststatus=2
+
+        set number relativenumber
+
+      '';
+    };
+  };
+
 }