1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
{ config, lib, pkgs, ... }:
{
users.users.sea.packages = with pkgs; [
bintools gdb gnumake pkg-config
gcc go janet lua python3 zig
fd htmlq jq ripgrep rlwrap
man-pages-posix stdman
texlive.combined.scheme-full
(vim_configurable.customize {
vimrcConfig = {
customRC = ''
set nocompatible
set undodir=~/.cache/vim/undo
set directory=~/.cache/vim/swap
set backupdir=~/.cache/vim/backup
set viminfo+=n~/.cache/vim/viminfo
set title clipboard=unnamedplus autochdir
set ignorecase infercase
set dictionary=${miscfiles}/share/web2,${miscfiles}/share/web2a
set omnifunc=syntaxcomplete#Complete
set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1
imap <C-x><C-x> <C-^>
map Q gq
command Q q
command W w
nmap W :w<CR>
set showcmd noshowmode ruler wildmenu confirm number relativenumber
set diffopt+=algorithm:patience
set tabstop=8 expandtab shiftwidth=4 softtabstop=-1 smarttab
set list listchars+=space:·,tab:\ \
set t_Co=256
let g:srcery_hard_black_terminal_bg = 0
let g:srcery_italic = 1
let g:srcery_italic_types = 1
let g:srcery_orange_cterm = 9
let g:srcery_bright_orange_cterm = 11
let g:srcery_hard_black_cterm = 231
let g:srcery_xgray1_cterm = 255
let g:srcery_xgray2_cterm = 254
let g:srcery_xgray3_cterm = 253
let g:srcery_xgray4_cterm = 252
let g:srcery_xgray5_cterm = 251
let g:srcery_xgray6_cterm = 250
colorscheme srcery
let g:jedi#popup_on_dot = 0
let g:jedi#popup_select_first = 0
let g:jedi#show_call_signatures = 2
let g:jedi#smart_auto_mappings = 0
let g:polyglot_disabled = ['latex']
let g:tex_flavor='latex'
let g:vimtex_indent_enabled=0
let g:vimtex_quickfix_mode=0
let g:zig_fmt_autosave = 0
augroup ft
autocmd BufNewFile,BufRead *.vert,*.geom,*.frag
\ setlocal filetype=glsl
autocmd BufNewFile,BufRead *.info setlocal filetype=json
autocmd BufNewFile,BufRead *.ms setlocal filetype=groff
autocmd BufNewFile,BufRead *.m setlocal filetype=octave
autocmd BufNewFile,BufRead CHANGES setlocal filetype=mail
augroup END
augroup fmt
autocmd FileType asm,automake,c,h,go,glsl,make,php
\ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8 tabstop=8
autocmd FileType diff,gitconfig,gitsendemail,mail,sshconfig,tsv
\ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8 tabstop=8
autocmd FileType vim,sh,scheme,lua,tex,cmake,plantuml,html,pascal
\ setlocal shiftwidth=2
autocmd FileType cpp
\ setlocal cindent tabstop=8
autocmd FileType cpp
\ setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1
autocmd FileType rst setlocal shiftwidth=3
autocmd FileType mail,markdown,rst,tex setlocal spell
autocmd BufWinEnter *
\ if &filetype ==# 'python' || &filetype ==# 'cython'
\ || &filetype ==# 'mail'
\ | let w:m1=matchadd('ColorColumn', '\%<80v.\%>73v', -1) |
\ else
\ | let w:m1=matchadd('ColorColumn', '\%<81v.\%>80v', -1) |
\ endif
augroup END
augroup pkg
autocmd FileType python :packadd jedi-vim
autocmd FileType tex :packadd vimtex
autocmd ColorScheme * highlight! link SpecialKey SrceryXgray4
augroup END
'';
packages.myVimPackage = with vimPlugins; {
start = [ ranger-vim srcery-vim vim-polyglot ];
opt = [ jedi-vim vimtex ];
};
};
})
];
programs = {
git = {
enable = true;
package = pkgs.gitFull;
};
gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "qt";
};
};
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
}
|