Formatting
This commit is contained in:
parent
ae65065d5c
commit
3ca8c5e218
9 changed files with 156 additions and 108 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue