Formatting

This commit is contained in:
Nox Sluijtman 2025-04-18 09:37:57 +02:00
parent ae65065d5c
commit 3ca8c5e218
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M
9 changed files with 156 additions and 108 deletions

View file

@ -1,7 +1,14 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
with lib;
let cfg = config.voidconf.vim;
in {
let
cfg = config.voidconf.vim;
in
{
options.voidconf.vim = {
enable = mkEnableOption "Enables opinionated vim configuration";
enableNvim = mkEnableOption "Enables neovim and alias";
@ -9,7 +16,7 @@ in {
type = types.bool;
default = true;
description = ''
Set 'vim' as $EDITOR
Set 'vim' as $EDITOR
'';
};
};
@ -26,37 +33,37 @@ in {
(mkIf cfg.enableNvim (neovim.override { vimAlias = true; }))
((vim_configurable.override { }).customize {
name = "vim";
vimrcConfig = {
packages.myplugs = with pkgs.vimPlugins; {
start = [ vim-nix ];
opt = [];
};
customRC = ''
syntax on
set nocompatible
set ignorecase
set hlsearch
set incsearch
set autoindent
set smartindent
set wildmenu
set expandtab
set shiftwidth=4
set tabstop=4
set number
set relativenumber
set mouse=
set listchars=tab:\ ,trail:·
set list
set scrolloff=3
set notimeout
set backspace=2
au FileType nix setlocal shiftwidth=2 tabstop=2 expandtab
au FileType haskell,tex setlocal shiftwidth=4 tabstop=4 expandtab
'';
};
((vim_configurable.override { }).customize {
name = "vim";
vimrcConfig = {
packages.myplugs = with pkgs.vimPlugins; {
start = [ vim-nix ];
opt = [ ];
};
customRC = ''
syntax on
set nocompatible
set ignorecase
set hlsearch
set incsearch
set autoindent
set smartindent
set wildmenu
set expandtab
set shiftwidth=4
set tabstop=4
set number
set relativenumber
set mouse=
set listchars=tab:\ ,trail:·
set list
set scrolloff=3
set notimeout
set backspace=2
au FileType nix setlocal shiftwidth=2 tabstop=2 expandtab
au FileType haskell,tex setlocal shiftwidth=4 tabstop=4 expandtab
'';
};
})
];
};