diff --git a/bin/.bin/javadocs b/bin/.bin/javadocs new file mode 100755 index 0000000..0414549 --- /dev/null +++ b/bin/.bin/javadocs @@ -0,0 +1,2 @@ +#!/bin/bash +setsid firefox "/usr/share/doc/java-openjdk/index.html" & diff --git a/bin/.config/emoji b/bin/.config/emoji index 51dde50..15d740f 100644 --- a/bin/.config/emoji +++ b/bin/.config/emoji @@ -1644,3 +1644,4 @@ 🏴󠁧󠁢󠁥󠁮󠁧󠁿 flag: England; U+1F3F4 U+E0067 U+E0062 U+E0065 U+E006E U+E0067 U+E007F 🏴󠁧󠁢󠁳󠁣󠁴󠁿 flag: Scotland; U+1F3F4 U+E0067 U+E0062 U+E0073 U+E0063 U+E0074 U+E007F 🏴󠁧󠁢󠁷󠁬󠁳󠁿 flag: Wales; U+1F3F4 U+E0067 U+E0062 U+E0077 U+E006C U+E0073 U+E007F +Ⓥ voids: diff --git a/picom/.config/picom/picom.conf b/picom/.config/picom/picom.conf index 9f5062f..95b3d0d 100644 --- a/picom/.config/picom/picom.conf +++ b/picom/.config/picom/picom.conf @@ -4,5 +4,6 @@ inactive-opacity = 0.9; opacity-rule = [ "100:name ~?= 'YouTube — Mozilla Firefox'", "100:name ~?= 'Twitch — Mozilla Firefox'", + "100:name ~?= 'Netflix — Mozilla Firefox'", "100:class_g = 'Zathura'" ] diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 1e24f79..4986117 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -1,4 +1,5 @@ set -g mouse +set -g set-clipboard on bind h selectp -L bind j selectp -D diff --git a/vim/.vimrc b/vim/.vimrc index e1cf6f5..6e01977 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,8 +1,22 @@ autocmd FileType asm noremap :execute 'silent !qtspim' expand('%::p') -nnoremap :GFiles +nnoremap :Buffers nnoremap :Ag +"alt g to :Gfiles (if in git folder) else :Files +function! GFilesFallback() + let output = system('git rev-parse --show-toplevel') " Is there a faster way? + let prefix = get(g:, 'fzf_command_prefix', '') + if v:shell_error == 0 + exec "normal :" . prefix . "GFiles\" + else + exec "normal :" . prefix . "Files\" + endif + return 0 +endfunction +execute "set =\eg" +nnoremap :call GFilesFallback() + nnoremap :vert term let g:netrw_keepdir=0 @@ -11,7 +25,6 @@ let g:netrw_liststyle=3 let python_highlight_all=1 let g:pymode_python = 'python3' let g:pymode_options_max_line_length = 120 -" let g:ctrlp_cmd = 'CtrlPTag' let g:htmljinja_disable_detection = 1 let g:vimtex_view_method = 'zathura' @@ -20,9 +33,6 @@ let g:vimtex_grammar_textidote = {'jar': '/usr/share/java/textidote.jar'} let g:vimtex_view_method = 'zathura' -" nnoremap (YCMFindSymbolInDirectory) -" nnoremap (YCMFindSymbolInWorkspace) - nnoremap gd :YcmCompleter GoToDefinition nnoremap gr :YcmCompleter GoToReferences nnoremap K :YcmCompleter GetDoc @@ -63,6 +73,7 @@ let g:cpp_attributes_highlight = 1 let g:ycm_always_populate_location_list = 1 let g:ycm_goto_buffer_command = "'split-or-existing-window'" let g:ycm_global_ycm_extra_conf = '~/.vim/ycm_extra_conf.py' +" let g:ycm_java_binary_path = "/usr/lib/jvm/java-17-openjdk/bin/java" let g:ycm_language_server = [ \ { \ 'name': 'tex', @@ -76,14 +87,15 @@ let g:ycm_language_server = [ nnoremap za syntax on +" set foldcolumn=1 set autochdir set clipboard^=unnamed,unnamedplus set concealcursor= set conceallevel=2 set encoding=utf-8 -" set foldcolumn=1 set foldlevel=99 set foldmethod=syntax +set hidden set hls set ignorecase set incsearch @@ -93,18 +105,20 @@ set nocompatible set nowrap set nu set rnu -set shiftwidth=4 set scrolloff=10 +set shiftwidth=4 set showcmd set spelllang+=fr set splitbelow splitright set tabstop=4 +set ttymouse=xterm2 color desert hi Normal ctermfg=None ctermbg=None hi NonText ctermfg=None ctermbg=None packadd termdebug +let g:termdebug_wide=1 filetype off set rtp+=$HOME/.vim/bundle/Vundle.vim/ @@ -125,6 +139,7 @@ Plugin 'szw/vim-maximizer' Plugin 'junegunn/fzf', {'do': { -> fzf#install() }} Plugin 'junegunn/fzf.vim' Plugin 'junegunn/vim-peekaboo' "see content of register before past for @ C-R and \" +Plugin 'chrisbra/unicode.vim' "useful in multiple languages Plugin 'SirVer/ultisnips' "fast write @@ -166,7 +181,6 @@ Plugin 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for' Plugin 'bfrg/vim-cpp-modern' "Extended vim syntax highlight c++ Plugin 'a.vim' "go from hpp to cpp with :A " Plugin 'xavierd/clang_complete' "CLang Complete (don't work with ycm) -" Plugin 'ctrlpvim/ctrlp.vim' "ctrl p support Plugin 'cdelledonne/vim-cmake' "glsl (shader) diff --git a/zsh/.zprofile b/zsh/.zprofile index 6bfcdf7..c327e97 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -1 +1,2 @@ emulate sh -c 'source /etc/profile' +emulate sh -c 'source ~/.profile' diff --git a/zsh/.zshrc b/zsh/.zshrc index b5ae5d6..59cfe9a 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -174,6 +174,9 @@ source /usr/share/zsh/plugins/zsh-vi-mode/zsh-vi-mode.plugin.zsh zmodload zsh/terminfo # Enabling fzf capabilities source /usr/share/fzf/*.zsh + +source /opt/enhancd/init.sh + bindkey "$terminfo[kcuu1]" history-substring-search-up bindkey "$terminfo[kcud1]" history-substring-search-down bindkey '^[[A' history-substring-search-up