This commit is contained in:
Parker TenBroeck 2026-05-22 22:12:31 -04:00
commit 0a62ab530d
30 changed files with 2420 additions and 0 deletions

View file

@ -0,0 +1,7 @@
{
imports = [
./vi.nix
./vim.nix
./neovim.nix
];
}

View file

@ -0,0 +1,10 @@
{
home-manager.users.may = {
programs.neovim = {
enable = true;
viAlias = true;
defaultEditor = true;
extraConfig = builtins.readFile ./shared.vim;
};
};
}

View file

@ -0,0 +1,27 @@
" Shared base config for vim and neovim.
set nocompatible
syntax on
filetype plugin indent on
set number
" set relativenumber
set ruler
set showcmd
set hidden
set mouse=a
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set smartindent
set ignorecase
set smartcase
set incsearch
set hlsearch
set splitright
set splitbelow
set clipboard=unnamedplus
set updatetime=300

8
modules/editors/vi.nix Normal file
View file

@ -0,0 +1,8 @@
{
home-manager.users.may = {
home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
};
};
}

8
modules/editors/vim.nix Normal file
View file

@ -0,0 +1,8 @@
{
home-manager.users.may = {
programs.vim = {
enable = true;
extraConfig = builtins.readFile ./shared.vim;
};
};
}