Mercurial > dotfiles
comparison dot_config/nvim/init.vim @ 383:536cd19a8c6e
Clean up unused config
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 18 Apr 2021 10:22:38 +0200 |
parents | c141a5571a07 |
children | a8231e54e6b1 |
comparison
equal
deleted
inserted
replaced
382:41a8b9f51e05 | 383:536cd19a8c6e |
---|---|
15 source $VIMRUNTIME/ftplugin/man.vim | 15 source $VIMRUNTIME/ftplugin/man.vim |
16 | 16 |
17 if has('packages') | 17 if has('packages') |
18 silent! packadd! log_file | 18 silent! packadd! log_file |
19 silent! packadd! snippets | 19 silent! packadd! snippets |
20 silent! packadd! chipscoper | |
21 endif | 20 endif |
22 | 21 |
23 if has("nvim") | 22 if has("nvim") |
24 let g:python3_host_prog=expand('$HOME/.config/virtualenvs/python3/bin/python') | 23 let g:python3_host_prog=expand('$HOME/.config/virtualenvs/python3/bin/python') |
25 let g:python_host_prog=expand('$HOME/.config/virtualenvs/python2/bin/python') | 24 let g:python_host_prog=expand('$HOME/.config/virtualenvs/python2/bin/python') |
44 set title | 43 set title |
45 set scrolloff=4 " Stay 4 lines from top/bottom | 44 set scrolloff=4 " Stay 4 lines from top/bottom |
46 set showcmd | 45 set showcmd |
47 | 46 |
48 " Theme and style | 47 " Theme and style |
49 | |
50 let g:PaperColor_Theme_Options = { | |
51 \ 'theme': { | |
52 \ 'default': { | |
53 \ 'allow_bold': 0 | |
54 \ } | |
55 \ } | |
56 \} | |
57 | 48 |
58 set termguicolors | 49 set termguicolors |
59 | 50 |
60 set background=dark | 51 set background=dark |
61 | 52 |
216 | 207 |
217 " No selecting via mouse (stops visual selection when scrolling) | 208 " No selecting via mouse (stops visual selection when scrolling) |
218 set mouse=nic | 209 set mouse=nic |
219 | 210 |
220 " }}} | 211 " }}} |
221 " Status line {{{ | |
222 hi StatusLine ctermfg=0 ctermbg=3 cterm=NONE | |
223 hi StatusLineNC ctermfg=8 ctermbg=7 cterm=NONE | |
224 hi User1 ctermfg=0 ctermbg=7 | |
225 hi User2 ctermfg=NONE ctermbg=NONE | |
226 hi User3 ctermfg=0 ctermbg=3 | |
227 hi User4 ctermfg=0 ctermbg=5 | |
228 function! Status() | |
229 let l:statusline='' | |
230 let l:statusline.=' %t' | |
231 let l:statusline.=' %1*' | |
232 let l:statusline.=' %Y' | |
233 let l:statusline.=' %2*' | |
234 let l:statusline.='%=' | |
235 let l:statusline.=' %1*' | |
236 let l:statusline.=' line ' | |
237 let l:statusline.='' | |
238 let l:statusline.='%l' | |
239 let l:statusline.=' %3*' | |
240 let l:statusline.=' of ' | |
241 let l:statusline.='' | |
242 let l:statusline.='%L ' | |
243 let l:statusline.='' | |
244 return l:statusline | |
245 endfunction | |
246 set laststatus=2 | |
247 set statusline=%!Status() | |
248 " }}} | |
249 " Fix Colors in colorscheme {{{ | |
250 function! SpellHighlights() abort | |
251 highlight SpellBad ctermbg=256 ctermfg=210 | |
252 highlight SpellLocal ctermbg=240 ctermfg=010 | |
253 highlight SpellCap ctermbg=256 ctermfg=211 | |
254 endfunction | |
255 augroup SpellColors | |
256 autocmd! | |
257 autocmd ColorScheme * call SpellHighlights() | |
258 augroup END | |
259 "}}} | |
260 | 212 |
261 " Mappings {{{ | 213 " Mappings {{{ |
262 " Set leader to spacebar | 214 " Set leader to spacebar |
263 map <space> <leader> | 215 map <space> <leader> |
264 | 216 |
946 let g:python_highlight_all=1 | 898 let g:python_highlight_all=1 |
947 " }}} | 899 " }}} |
948 " }}} | 900 " }}} |
949 | 901 |
950 " Plugin settings {{{ | 902 " Plugin settings {{{ |
951 " Easy-align {{{ | |
952 " Start interactive EasyAlign in visual mode (e.g. vip<Enter>) | |
953 vmap <Enter> <Plug>(EasyAlign) | |
954 | |
955 " Start interactive EasyAlign for a motion/text object (e.g. gaip) | |
956 nmap ga <Plug>(EasyAlign) | |
957 " }}} | |
958 " Gundo tree {{{ | 903 " Gundo tree {{{ |
959 nnoremap <leader>u :GundoToggle<CR> | 904 nnoremap <leader>u :GundoToggle<CR> |
960 " }}} | 905 " }}} |
961 " Projectionist {{{ | 906 " Projectionist {{{ |
962 let g:projectionist_heuristics = { | 907 let g:projectionist_heuristics = { |
1025 let g:completion_enable_auto_paren=0 | 970 let g:completion_enable_auto_paren=0 |
1026 | 971 |
1027 let delimitMate_expand_cr = 1 | 972 let delimitMate_expand_cr = 1 |
1028 let delimitMate_expand_space = 1 | 973 let delimitMate_expand_space = 1 |
1029 " }}} | 974 " }}} |
1030 " Background make {{{ | |
1031 nnoremap <F9> :PMake<CR> | |
1032 " }}} | |
1033 " Splice {{{ | 975 " Splice {{{ |
1034 let g:splice_initial_diff_grid=1 | 976 let g:splice_initial_diff_grid=1 |
1035 let g:splice_initial_diff_compare=1 | 977 let g:splice_initial_diff_compare=1 |
1036 let g:splice_initial_diff_path=0 | 978 let g:splice_initial_diff_path=0 |
1037 let g:splice_initial_scrollbind_grid=1 | 979 let g:splice_initial_scrollbind_grid=1 |
1038 let g:splice_initial_scrollbind_compare=1 | 980 let g:splice_initial_scrollbind_compare=1 |
1039 let g:splice_initial_scrollbind_path=1 | 981 let g:splice_initial_scrollbind_path=1 |
1040 let g:splice_wrap="nowrap" | 982 let g:splice_wrap="nowrap" |
1041 " }}} | |
1042 " Chipscoper {{{ | |
1043 nnoremap <leader>cm :call ChipScoperMark()<CR> | |
1044 nnoremap <leader>ci :call ChipScoperInsert()<CR> | |
1045 nnoremap <leader>cd :call ChipScoperUnMark()<CR> | |
1046 augroup cs_vhdl | |
1047 autocmd! | |
1048 autocmd FileType vhdl packadd chipscoper | |
1049 autocmd FileType vhdl silent! call ChipScoperSetup() | |
1050 augroup END | |
1051 " }}} | |
1052 " GDB {{{ | |
1053 let g:nvimgdb_disable_start_keymaps = 1 | |
1054 " }}} | |
1055 " Indents {{{ | |
1056 let g:indentLine_char = '|' | |
1057 " }}} | 983 " }}} |
1058 " }}} | 984 " }}} |
1059 | 985 |
1060 function! SendOSCClipboard(lines, regtype) | 986 function! SendOSCClipboard(lines, regtype) |
1061 call SendViaOSC52(join(a:lines, "\n")) | 987 call SendViaOSC52(join(a:lines, "\n")) |