Browse Source

update

master
Albakham 2 months ago
parent
commit
2437863aca
Signed by: albakham <dev@geber.ga> GPG Key ID: 6CE390277A579221
4 changed files with 50 additions and 41 deletions
  1. +15
    -6
      nvim/.config/nvim/init.vim
  2. +2
    -1
      tmux/.tmux.conf
  3. +33
    -0
      zsh/.profile
  4. +0
    -34
      zsh/.zshrc

+ 15
- 6
nvim/.config/nvim/init.vim View File

@@ -22,14 +22,16 @@ Plug 'kovetskiy/sxhkd-vim'
Plug 'ncm2/ncm2'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
Plug 'Shougo/deoplete.nvim'
Plug 'davidhalter/jedi'
Plug 'deoplete-plugins/deoplete-jedi'
Plug 'Valloric/YouCompleteMe'
Plug 'tmhedberg/SimpylFold'
Plug 'nvie/vim-flake8'
Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
call plug#end()

" VIM colorscheme

set bg=light
set bg=dark
set go=a
set mouse=a
set nohlsearch
@@ -94,8 +96,14 @@ set nu
autocmd VimLeave *.tex !texclear %

" Use deoplete
let g:deoplete#enable_at_startup = 1
let g:deoplete#auto_complete_delay = 100
" let g:deoplete#enable_at_startup = 1
" let g:deoplete#auto_complete_delay = 100


" YouCompleteMe settings
let g:ycm_autoclose_preview_window_after_completion=1
map <leader>g :YcmCompleter GoToDefinitionElseDeclarati


" Ensure files are read as what I want:
let g:vimwiki_ext2syntax = {'.Rmd': 'markdown', '.rmd': 'markdown','.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'}
@@ -259,7 +267,7 @@ let shells = {
\ 'm': "octave",
\ 'pl': "perl",
\ 'php': "php",
\ 'py': "python",
\ 'py': "python3",
\ 'r': "Rscript",
\ 'rb': "ruby",
\ 'scala': "scala",
@@ -294,3 +302,4 @@ endif
endfunction

:autocmd BufNewFile *.* :call Hashbang(1,1,0)


+ 2
- 1
tmux/.tmux.conf View File

@@ -1,7 +1,7 @@
set -g prefix C-a
setw -g mode-keys vi
setw -g mode-style bg=black
set-option -g default-terminal "xterm-256color"
set-option -g default-terminal "tmux-256color"
set-option -g pane-active-border-style fg=green
set-window-option -g xterm-keys on # for vim
set-window-option -g mode-keys vi # vi key
@@ -54,3 +54,4 @@ bind o select-layout "active-only"
bind M-- select-layout "even-vertical"
bind M-| select-layout "even-horizontal"
bind M-r rotate-window


+ 33
- 0
zsh/.profile View File

@@ -0,0 +1,33 @@
# ALIASES
alias xclip="xclip -selection c"
alias p="sudo pacman"
alias mkd="mkdir -pv"
alias x="xrandr --output HDMI-1 --right-of eDP-1"
alias r="ranger"
alias gpgp="python3 ~/repos/gpgp/gpgp.py"
alias vim="nvim"
alias v="nvim"
alias ssh="ssh -Y"
alias free='LC_ALL=C free'
alias rm='rm -i'
alias vim="nvim"
alias v="nvim"
alias ssh="ssh -Y"
alias free='LC_ALL=C free'
alias rm='rm -i'
alias protonvpn='sudo protonvpn'

# ENV
export LC_TIME=fr_FR.UTF-8
export QT_QPA_PLATFORMTHEME=qt5ct
export GOPATH="$HOME/.go"
export PATH="$PATH:$HOME/dotfiles/bin"
export PATH="$HOME/.cargo/bin:$PATH"
export CHROOT="$HOME/chroot"
export VISUAL="nvim"
export EDITOR="$VISUAL"
export LC_TIME=fr_FR.UTF-8
export QT_QPA_PLATFORMTHEME=qt5ct
export WORKON_HOME=~/Envs
source /usr/bin/virtualenvwrapper.sh


+ 0
- 34
zsh/.zshrc View File

@@ -6,13 +6,6 @@ DEFAULT_USER="titelive"
prompt_context(){}
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
export GOPATH="$HOME/.go"
export PATH="$PATH:$HOME/dotfiles/bin"
export PATH="$HOME/.cargo/bin:$PATH"
export CHROOT="$HOME/chroot"
export EDITOR="nvim"
export LC_TIME=fr_FR.UTF-8
export QT_QPA_PLATFORMTHEME=qt5ct

[[ -r "/usr/share/z/z.sh" ]] && source /usr/share/z/z.sh

@@ -28,26 +21,6 @@ plugins=(
#source ~/.cache/wal/colors-tty.sh
source $ZSH/oh-my-zsh.sh

# ALIASES
alias xclip="xclip -selection c"
alias y="strat -r arch yay"
alias p="sudo pacman"
alias mkd="mkdir -pv"
alias b="bluetoothctl"
alias x="xrandr --output HDMI-1 --right-of eDP-1"
alias r="ranger"
alias gpgp="python3 ~/repos/gpgp/gpgp.py"
alias suck="sudo make clean install"
alias vim="nvim"
alias v="nvim"
alias ssh="ssh -Y"
alias free='LC_ALL=C free'
alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'
alias monip="python2 ~/.monip.py"
alias rm='rm -i'
alias lolls='ls -l|lolcat'
unset zle_bracketed_paste

### Colorization functions
function _colorman() {
env \
@@ -62,10 +35,3 @@ function _colorman() {
}
function man() { _colorman man "$@"; }
function perldoc() { command perldoc -n less "$@" |man -l -; }

GREP_OPTS='--color=auto' # for aliases since $GREP_OPTIONS is deprecated
GREP_COLOR='1;32' # (legacy) bright green rather than default red
GREP_COLORS="ms=$GREP_COLOR" # (new) Matching text in Selected line = green
alias grep='grep $GREP_OPTS'
alias egrep='egrep $GREP_OPTS'
alias fgrep='fgrep $GREP_OPTS'

Loading…
Cancel
Save