From b3084fd9b6227e920109e5d33a59a9ae3b44901d Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Wed, 8 May 2024 12:30:33 +0200 Subject: [PATCH] some changes --- bin/.bin/javadocs | 2 ++ bin/.config/emoji | 1 + picom/.config/picom/picom.conf | 1 + tmux/.config/tmux/tmux.conf | 1 + vim/.vimrc | 30 ++++++++++++++++++++++-------- zsh/.zprofile | 1 + zsh/.zshrc | 3 +++ 7 files changed, 31 insertions(+), 8 deletions(-) create mode 100755 bin/.bin/javadocs 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 26b593c..0f4a53c 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 @@ -65,6 +75,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', @@ -78,14 +89,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 @@ -95,18 +107,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/ @@ -127,6 +141,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 @@ -168,7 +183,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