diff --git a/Zeal/Zeal.conf b/Zeal/Zeal.conf new file mode 100644 index 0000000..cec7853 --- /dev/null +++ b/Zeal/Zeal.conf @@ -0,0 +1,50 @@ +[General] +check_for_update=true +hide_on_close=false +minimize_to_systray=false +show_systray_icon=true +start_minimized=false + +[content] +custom_css_file= +dark_mode=false +default_fixed_font_size=13 +default_font_family=serif +default_font_size=16 +disable_ad=false +external_link_policy=@Variant(\0\0\0\x7f\0\0\0)Zeal::Core::Settings::ExternalLinkPolicy\0\0\0\0\0) +fixed_font_family=DejaVu Sans Mono +highlight_on_navigate=true +minimum_font_size=0 +sans_serif_font_family=DejaVu Sans +serif_font_family=DejaVu Serif +smooth_scrolling=false + +[docsets] +path=/home/geoffrey/.cache/dash_docsets + +[global_shortcuts] +show= + +[internal] +install_id=a2353684-8909-4ac3-8ad5-b8d8a7e9292a +version=0.6.1 + +[proxy] +authenticate=false +host= +password= +port=0 +type=1 +username= + +[search] +fuzzy_search_enabled=false + +[state] +splitter_geometry=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\0\0\0\x4\xb0\0\xff\xff\xff\xff\x1\0\0\0\x1\0) +toc_splitter_state=@ByteArray() +window_geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x80\0\0\0\x12\0\0\f\x7f\0\0\x3\xeb\0\0\a\x80\0\0\0\x12\0\0\f\x7f\0\0\x3\xeb\0\0\0\0\0\0\0\0\x5\0\0\0\a\x80\0\0\0\x12\0\0\f\x7f\0\0\x3\xeb) + +[tabs] +open_new_tab_after_active=false diff --git a/config/mpd/mpd.conf b/config/mpd/mpd.conf index 6e51962..42f5b38 100644 --- a/config/mpd/mpd.conf +++ b/config/mpd/mpd.conf @@ -10,7 +10,7 @@ # be disabled and audio files will only be accepted over ipc socket (using # file:// protocol) or streaming files over an accepted protocol. # -music_directory "~/Musique" +music_directory "~/.MusiqueCompressed" # # This setting sets the MPD internal playlist directory. The purpose of this # directory is storage for playlists created by MPD. The server will use diff --git a/config/scripts/adb_backup_extract b/config/scripts/adb_backup_extract new file mode 100755 index 0000000..029756a --- /dev/null +++ b/config/scripts/adb_backup_extract @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# Make sur eto install zlib-flate from the qpdf package +# Works on unencrypted only + +tail -c +25 "$1" | zlib-flate -uncompress | tar xvf - diff --git a/config/scripts/overpdf b/config/scripts/overpdf index 5b20981..a8e4902 100755 --- a/config/scripts/overpdf +++ b/config/scripts/overpdf @@ -39,7 +39,7 @@ then echo "Done." elif [ -f "$orig_path" ] then - if [ "$(file --mime-type --brief $orig_path)" != "application/pdf" ] + if [ "$(file --mime-type --brief "$orig_path")" != "application/pdf" ] then echo "${orig_path}: not a PDF file" exit 1 diff --git a/config/shell/shenv b/config/shell/shenv index 2096388..8fb6dc5 100644 --- a/config/shell/shenv +++ b/config/shell/shenv @@ -49,6 +49,7 @@ export BOOT9_PATH="$HOME/.local/share/citra-emu/sysdata/boot9.bin" direnv CARGOHOME "$HOME/.cache/cargo" # There are config in there that we can version if one want direnv CCACHE_BASEDIR "$HOME/.cache/ccache" export CCACHE_CONFIGPATH="$HOME/.config/ccache.conf" +direnv DASHT_DOCSETS_DIR "$HOME/.cache/dash_docsets" direnv GNUPGHOME "$HOME/.config/gnupg" direnv GOPATH "$HOME/.cache/go" direnv GRADLE_USER_HOME "$HOME/.cache/gradle" diff --git a/config/vim/pluginconfig.vim b/config/vim/pluginconfig.vim index b87ff05..953456b 100644 --- a/config/vim/pluginconfig.vim +++ b/config/vim/pluginconfig.vim @@ -68,8 +68,8 @@ nmap gs :FzfSnippets """ SUPERTAB """ -" let g:SuperTabDefaultCompletionType = "" " Go down when completing -" let g:SuperTabContextDefaultCompletionType = "" +let g:SuperTabDefaultCompletionType = "" " Go down when completing +let g:SuperTabContextDefaultCompletionType = "" """ LanguageTool """ @@ -82,29 +82,84 @@ let g:pandoc#syntax#conceal#use = 0 """ LanguageClient-neovim """ -let g:LanguageClient_serverCommands = { - \ 'python': ['pyls'], - \ 'sh': ['bash-language-server', 'start'], - \ } -let g:LanguageClient_loggingFile = expand('~/.cache/vim/LanguageClient.log') +" let g:LanguageClient_serverCommands = { +" \ 'python': ['pyls'], +" \ 'sh': ['bash-language-server', 'start'], +" \ } +" let g:LanguageClient_loggingFile = expand('~/.cache/vim/LanguageClient.log') +" +" +" function LC_maps() +" if has_key(g:LanguageClient_serverCommands, &filetype) +" nnoremap K :call LanguageClient#textDocument_hover() +" nnoremap gd :call LanguageClient#textDocument_definition() +" nnoremap gD :call LanguageClient#textDocument_references() +" nnoremap :call LanguageClient#textDocument_rename() +" nnoremap :call LanguageClient#textDocument_formatting() +" set completefunc=LanguageClient#complete +" set omnifunc=LanguageClient#complete +" endif +" endfunction +" autocmd FileType * call LC_maps() +""" vim-lsp """ -function LC_maps() - if has_key(g:LanguageClient_serverCommands, &filetype) - nnoremap K :call LanguageClient#textDocument_hover() - nnoremap gd :call LanguageClient#textDocument_definition() - nnoremap gd :call LanguageClient#textDocument_references() - nnoremap :call LanguageClient#textDocument_rename() - nnoremap :call LanguageClient#textDocument_formatting() - set completefunc=LanguageClient#complete - set omnifunc=LanguageClient#complete - endif -endfunction -autocmd FileType * call LC_maps() +" (providers are automatically detected thanks to vim-lsp-settings. +" You can even install some locally using :LspInstallServer) + +nnoremap gd :LspDefinition +nnoremap gD :LspDeclaration +nnoremap :LspDocumentFormat +vnoremap :LspDocumentRangeFormat +nnoremap gE :LspNextDiagnostic +nnoremap ge :LspNextError +nnoremap :LspRename + +let g:lsp_signs_enabled = 1 +let g:lsp_diagnostics_echo_cursor = 1 + +let g:lsp_signs_error = {'text': '✗'} +let g:lsp_signs_warning = {'text': '‼'} +let g:lsp_signs_information = {'text': 'ℹ'} +let g:lsp_signs_hint = {'text': '?'} + +let g:lsp_highlight_references_enabled = 1 """ deoplete """ let g:deoplete#enable_at_startup = 1 +inoremap +\ pumvisible() ? "\" : +\ check_back_space() ? "\" : +\ deoplete#manual_complete() +function! s:check_back_space() abort "{{{ +let col = col('.') - 1 +return !col || getline('.')[col - 1] =~ '\s' +endfunction"}}} + +" suggested by ssemshi to make it not too slow +" let g:deoplete#auto_complete_delay = 100 +call deoplete#custom#option({ +\ 'auto_complete_delay': 100, +\ 'smart_case': v:true, +\ }) + +""" asyncomplete """ + +" let g:asyncomplete_auto_popup = 1 +" inoremap pumvisible() ? "\" : "\" +" inoremap pumvisible() ? "\" : "\" +" inoremap pumvisible() ? "\" : "\" +" imap (asyncomplete_force_refresh) + +""" asyncomplete-file + +" au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({ +" \ 'name': 'file', +" \ 'whitelist': ['*'], +" \ 'priority': 10, +" \ 'completor': function('asyncomplete#sources#file#completor') +" \ })) """ vista.vim """ diff --git a/config/vim/pluginlist.vim b/config/vim/pluginlist.vim index 70d10e2..5746010 100644 --- a/config/vim/pluginlist.vim +++ b/config/vim/pluginlist.vim @@ -44,10 +44,8 @@ Plug 'deris/vim-shot-f' " Auto-highlight one character per word for quick f/F movement Plug 'unblevable/quick-scope' -" -" Plug 'maralla/completor.vim' -" " Auto-completion + if has('nvim') Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } else @@ -55,7 +53,9 @@ else Plug 'roxma/nvim-yarp' Plug 'roxma/vim-hug-neovim-rpc' endif -" Plug 'zchee/deoplete-jedi' + +" Plug 'prabirshrestha/asyncomplete.vim' +" Plug 'prabirshrestha/asyncomplete-file.vim' " Plug 'python-mode/python-mode', { 'branch': 'develop' } Plug 'junegunn/fzf', {'do': './install --bin'} @@ -67,11 +67,16 @@ Plug 'vim-pandoc/vim-pandoc' Plug 'vim-pandoc/vim-pandoc-syntax' Plug 'idanarye/vim-vebugger' -" Language Server Procotol client -Plug 'autozimu/LanguageClient-neovim', { - \ 'branch': 'next', - \ 'do': 'bash install.sh', - \ } +" " Language Server Procotol client + +" Plug 'autozimu/LanguageClient-neovim', { +" \ 'branch': 'next', +" \ 'do': 'bash install.sh', +" \ } + +Plug 'prabirshrestha/async.vim' +Plug 'prabirshrestha/vim-lsp' +Plug 'mattn/vim-lsp-settings' " Automatically closes brackets, quotes and parentheses @@ -86,5 +91,8 @@ Plug 'autozimu/LanguageClient-neovim', { " Tag bar Plug 'liuchengxu/vista.vim' +" Semantic highlighting for Python +Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'} + call plug#end() diff --git a/config/vim/vimconfig.vim b/config/vim/vimconfig.vim index 6c18275..4ebd06b 100644 --- a/config/vim/vimconfig.vim +++ b/config/vim/vimconfig.vim @@ -61,6 +61,7 @@ filetype plugin on filetype indent on set wildmode=longest,list +set wildmenu set showcmd " Put plugins and dictionaries in this dir (also on Windows)