all repos

dotfiles @ 2604920c9710eaca1bb4167a9cb372da61dabda8

my dotfiles
3 files changed, 54 insertions(+), 44 deletions(-)
Update
Author: Smirnov Olexandr ss2316544@gmail.com
Committed at: 2020-12-06 16:30:44 +0200
Parent: 7cf1432
M config/nvim/init.vim

@@ -5,6 +5,7 @@ Plug 'ryanoasis/vim-devicons'

Plug 'itchyny/lightline.vim' Plug 'iamcco/markdown-preview.nvim' Plug 'dhruvasagar/vim-table-mode' + Plug 'easymotion/vim-easymotion' " File manger & seacher Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }

@@ -13,7 +14,6 @@

" Completion Plug 'jiangmiao/auto-pairs' Plug 'neoclide/coc.nvim', {'branch': 'release'} - Plug 'easymotion/vim-easymotion' " Language support Plug 'pangloss/vim-javascript', { 'for': 'javascript' }

@@ -75,57 +75,48 @@ set background=dark

colorscheme NeoSolarized -" ======================= -" == Plugins configure == -" ======================= - -"""""""" Lightline """""""" +" == Plugins configure +" Lightline +set noshowmode let g:lightline = { \ 'colorscheme': 'selenized_dark', \ 'active': { \ 'left': [ [ 'mode', 'paste' ], -\ [ 'readonly', 'modified', 'gitbranch' ] ], +\ [ 'readonly', 'modified' ] ], \ 'right': [ [ 'lineinfo' ], \ [ 'percent' ], \ [ 'filename', 'fileencoding', 'filetype' ] ] \ }, } -set noshowmode -""""""""""""""""""""""""""" -""""""""" Nerdtree """""""" +" Nerdtree map <C-b> :NERDTreeToggle<CR> let g:NERDTreeWinPos="right" let NERDTreeIgnore = ['__pycache__', '\.pyc$', '\.o$', '\.so$', '\.a$', '\.swp', '*\.swp', '\.swo', '\.swn', '\.swh', '\.swm', '\.swl', '\.swk', '\.sw*$', '[a-zA-Z]*egg[a-zA-Z]*', '.DS_Store'] let NERDTreeMinimalUI = 1 let NERDTreeShowLineNumbers=0 -""""""""""""""""""""""""""" -"""""""""""" Coc """""""""" +" Coc inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" -""""""""""""""""""""""""""" -""""""""" Markdown """""""" +" Markdown let g:vim_markdown_folding_disabled = 1 -""""""""""""""""""""""""" - -"""""" Easymotion """"""""" +" Easymotion let g:EasyMotion_do_mapping = 0 let g:EasyMotion_smartcase = 1 nmap f <Plug>(easymotion-s) map <Leader>w <Plug>(easymotion-bd-w) nmap F <Plug>(easymotion-overwin-line) nmap s <Plug>(easymotion-overwin-f2) -""""""""""""""""""""""""""" - - -" ============ -" == Maping == -" ============ -imap ii <Esc> +" CtrlP +map <C-p> :CtrlP<CR> +imap <C-p> :CtrlP<CR> +nmap <C-p> :CtrlP<CR> +" == Maping +imap fd <Esc> let mapleader="," " Change window

@@ -139,7 +130,7 @@ noremap <C-Tab> :tabnext<CR>

noremap <C-S-Tab> :tabprev<CR> noremap <C-n> :tabnew<CR> noremap <C-t> :tabnew<CR> -noremap <C-w> :tabclose<CR> +noremap <C-S-w> :tabclose<CR> noremap <leader>1 :tabn 1<CR> noremap <leader>2 :tabn 2<CR> noremap <leader>3 :tabn 3<CR>

@@ -151,6 +142,3 @@ noremap <leader>8 :tabn 8<CR>

noremap <leader>9 :tabn 9<CR> noremap <leader>n :bnext<CR> noremap <leader>p :bprev<CR> - -let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" -let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
M config/ranger/rc.conf

@@ -24,7 +24,7 @@ set vcs_msg_length 30

### Preview set preview_images true -set preview_images_method w3m +set preview_images_method ueberzug set w3m_delay 0.02 set w3m_offset 0
M script/dmenu/dmenu-config-edit.sh

@@ -1,5 +1,4 @@

#!/bin/sh - declare options=("i3 berry qtile

@@ -8,22 +7,21 @@ polybar

picom dunst qutebrowser +taskwarrior tmux vim -neovim -kitty -taskwarrior -fish -zsh") +ranger +term +sh") -choice=$(echo -e "${options[@]}" | dmenu -p 'Edit config file: ' $@) +choice=$(echo -e "${options[@]}" | dmenu -p 'Edit config file' $@) case "$choice" in i3) choice="$HOME/.config/i3/config" ;; qtile) opt=$(echo -e "config.py\nautostart"|dmenu -p 'Qtile' $@) case "$opt" in "config.py") choice="$HOME/.config/qtile/config.py" ;; - "autostart") choice="$HOME/.config/qtile/autostart.sh" ;; + "autostart.sh") choice="$HOME/.config/qtile/autostart.sh" ;; esac ;; berry)

@@ -44,22 +42,46 @@ "reload") openbox --reconfigure && pkill kitty ;;

esac ;; picom) choice="$HOME/.config/picom.conf" ;; - tmux) choice="$HOME/.tmux.conf" ;; polybar) choice="$HOME/.config/polybar/config" ;; qutebrowser) - why=$(echo -e "config.py\nquickmarks" | dmenu -h 24 -p 'Qutebrowser') + why=$(echo -e "config.py\nquickmarks" | dmenu -p 'Qutebrowser') case "$why" in "config.py") choice="$HOME/.config/qutebrowser/config.py" ;; "quickmarks") choice="$HOME/.config/qutebrowser/quickmarks" ;; esac ;; - vim) choice="$HOME/.vimrc" ;; - nvim) choice="$HOME/.config/nvim/init.vim" ;; + ranger) + why=$(echo -e "rc.conf\nrifle.conf") + case "$why" in + "rc.conf") choice="$HOME/.config/ranger/rc.conf" ;; + "rifle.conf") choice="$HOME/.config/ranger/rifle.conf" ;; + esac + ;; + vim) + why=$(echo -e "nvim\nvim"|dmenu -p 'Vim' $@) + case "$why" in + vim) choice="$HOME/.vimrc" ;; + nvim) choice="$HOME/.config/nvim/init.vim" ;; + esac + ;; + tmux) choice="$HOME/.tmux.conf" ;; + term) + why=$(echo -e "kitty\nalacritty"|demnu -p "Term" $@) + case "$why" in + kitty) choice="$HOME/.config/kitty/kitty.conf" ;; + alacritty) choice="$hoME/.config/alacritty/alacritty.yml" ;; + esac + ;; dunst) choice="$HOME/.config/dunst/dunstrc" ;; - zsh) choice="$HOME/.zshrc" ;; + sh) + why=$(echo -e "zsh\nfish\nbash"|dmenu -p "Shell" $@) + case "$why" in + zsh) choice="$HOME/.zshrc" ;; + fish) choice="$HOME/.config/fish/config.fish" ;; + bash) choice="$hoME/.bashrc" + esac + ;; taskwarior) choice="$HOME/.taskrc" ;; - fish) choice="$HOME/.config/fish/config.fish" ;; - kitty) choice="$HOME/.config/kitty/kitty.conf" ;; *) exit 1 ;; esac kitty -e nvim "$choice"