This commit is contained in:
Till 2023-05-13 11:31:13 +02:00
parent 63594c8a0e
commit c653be7cf2
2 changed files with 31 additions and 32 deletions

View file

@ -28,7 +28,7 @@
pkgs = nixpkgs.legacyPackages.x86_64-linux; pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
modules = [ modules = [
./home-manager.nix ./home
]; ];
}; };
}; };

View file

@ -48,39 +48,13 @@
programs.neovim = { programs.neovim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
extraConfig = ''
let mapleader=" "
let maplocalleader="\\"
set colorcolumn=+1
set expandtab
set ignorecase
set iskeyword+=ä,Ä,ö,Ö,ü,Ü,ß
set linebreak
set list listchars=tab:»\ ,trail:·,nbsp:~
set number
set relativenumber
set scrolloff=7
set shell=/bin/sh
set shiftwidth=2
set shortmess=FfmnxoTIc
set signcolumn=no
set smartcase
set softtabstop=2
set spelllang=en_us,de_20
set splitbelow
set splitright
set tabstop=2
set updatetime=300
let g:netrw_liststyle = 3
let g:netrw_fastbrowse = 0
'';
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
# todo: pandoc, completion, lsp # todo: pandoc, completion, lsp
{ {
plugin = fzf-vim; plugin = fzf-vim;
config = '' config = ''
let maplocalleader="\\"
let mapleader=" "
nnoremap <leader><tab> :Buffers<return> nnoremap <leader><tab> :Buffers<return>
imap <c-x><c-f> <Plug>(fzf-complete-path) imap <c-x><c-f> <Plug>(fzf-complete-path)
nnoremap <leader>o :Files<return> nnoremap <leader>o :Files<return>
@ -146,7 +120,6 @@
vim-fish vim-fish
vim-nix vim-nix
vim-repeat vim-repeat
{ {
plugin = vim-slime; plugin = vim-slime;
config = '' config = ''
@ -162,13 +135,39 @@
" autocmd TermOpen * let g:slime_default_config = {"jobid": &channel} " autocmd TermOpen * let g:slime_default_config = {"jobid": &channel}
''; '';
} }
vim-snippets vim-snippets
vim-speeddating vim-speeddating
vim-surround vim-surround
vim-surround
vim-unimpaired vim-unimpaired
]; ];
extraConfig = ''
let mapleader=" "
let maplocalleader="\\"
set colorcolumn=+1
set expandtab
set ignorecase
set iskeyword+=ä,Ä,ö,Ö,ü,Ü,ß
set linebreak
set list listchars=tab:»\ ,trail:·,nbsp:~
set number
set relativenumber
set scrolloff=7
set shell=/bin/sh
set shiftwidth=2
set shortmess=FfmnxoTIc
set signcolumn=no
set smartcase
set softtabstop=2
set spelllang=en_us,de_20
set splitbelow
set splitright
set tabstop=2
set updatetime=300
let g:netrw_liststyle = 3
let g:netrw_fastbrowse = 0
'';
}; };
home.shellAliases = { home.shellAliases = {