mirror of
https://github.com/ParkerTenBroeck/dotfiles.git
synced 2026-06-06 21:00:35 -04:00
initial
This commit is contained in:
commit
0a62ab530d
30 changed files with 2420 additions and 0 deletions
7
modules/editors/default.nix
Normal file
7
modules/editors/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./vi.nix
|
||||
./vim.nix
|
||||
./neovim.nix
|
||||
];
|
||||
}
|
||||
10
modules/editors/neovim.nix
Normal file
10
modules/editors/neovim.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
home-manager.users.may = {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
defaultEditor = true;
|
||||
extraConfig = builtins.readFile ./shared.vim;
|
||||
};
|
||||
};
|
||||
}
|
||||
27
modules/editors/shared.vim
Normal file
27
modules/editors/shared.vim
Normal 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
8
modules/editors/vi.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
home-manager.users.may = {
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "nvim";
|
||||
};
|
||||
};
|
||||
}
|
||||
8
modules/editors/vim.nix
Normal file
8
modules/editors/vim.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
home-manager.users.may = {
|
||||
programs.vim = {
|
||||
enable = true;
|
||||
extraConfig = builtins.readFile ./shared.vim;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue