From fce84614f9f75d36eadaaaa6403d7cbdf2def3e4 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Wed, 6 Mar 2024 18:48:00 +0100 Subject: [PATCH 1/3] fap and dog commands --- git/.gitconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git/.gitconfig b/git/.gitconfig index 34ddc5c..933c1c3 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -13,3 +13,7 @@ tool = vimdiff [alias] gone = !git branch -v | awk '/gone/ { print $1 }' + dog = log --decorate --oneline --graph + fap = fetch --all --prune +[push] + autoSetupRemote = true From 19a9c145b38292e89db1f36d3313a011bab09fe2 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Tue, 9 Apr 2024 21:44:32 +0200 Subject: [PATCH 2/3] adding tmux --- tmux/.config/tmux/tmux.conf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tmux/.config/tmux/tmux.conf diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf new file mode 100644 index 0000000..1e24f79 --- /dev/null +++ b/tmux/.config/tmux/tmux.conf @@ -0,0 +1,6 @@ +set -g mouse + +bind h selectp -L +bind j selectp -D +bind k selectp -U +bind l selectp -R From e2069051238bbd364683956488a6b7f5b19aa3c8 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Tue, 16 Apr 2024 12:29:05 +0200 Subject: [PATCH 3/3] lombok --- vim/.vim/ycm_extra_conf.py | 20 ++++++++++++++++++++ vim/.vimrc | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 vim/.vim/ycm_extra_conf.py diff --git a/vim/.vim/ycm_extra_conf.py b/vim/.vim/ycm_extra_conf.py new file mode 100644 index 0000000..1a61c1d --- /dev/null +++ b/vim/.vim/ycm_extra_conf.py @@ -0,0 +1,20 @@ +import os + +PATH_TO_LOMBOK = os.path.expanduser("/usr/lib/lombok-common/lombok.jar") +jdtls_args = ['-noverify', + '-Xmx1G', + '-XX:+UseG1GC', + '-XX:+UseStringDeduplication'] + +def Settings( **kwargs ): + if not os.path.exists(PATH_TO_LOMBOK): + raise RuntimeError("Didn't find lombok jar") + if kwargs['language'] == 'java': + return { + 'server': { + 'jvm_args': [ + '-javaagent:' + PATH_TO_LOMBOK, + '-Xbootclasspath/a:' + PATH_TO_LOMBOK + ] + jdtls_args + } + } diff --git a/vim/.vimrc b/vim/.vimrc index 03799f2..e1cf6f5 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -26,7 +26,7 @@ let g:vimtex_view_method = 'zathura' nnoremap gd :YcmCompleter GoToDefinition nnoremap gr :YcmCompleter GoToReferences nnoremap K :YcmCompleter GetDoc -nnoremap :YcmCompleter FixIt +nnoremap :YcmCompleter FixIt noremap gN :Lex nnoremap :Make @@ -62,7 +62,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_java_binary_path = "/usr/lib/jvm/java-17-openjdk/bin/java" +let g:ycm_global_ycm_extra_conf = '~/.vim/ycm_extra_conf.py' let g:ycm_language_server = [ \ { \ 'name': 'tex',