all repos

dotfiles @ 2604920c9710eaca1bb4167a9cb372da61dabda8

i use rach linux btw
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
                5
                     Plug 'itchyny/lightline.vim'

              
                6
                6
                     Plug 'iamcco/markdown-preview.nvim'

              
                7
                7
                     Plug 'dhruvasagar/vim-table-mode'

              
                
                8
                +    Plug 'easymotion/vim-easymotion'

              
                8
                9
                 

              
                9
                10
                     " File manger & seacher

              
                10
                11
                     Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }

              ···
                13
                14
                     " Completion

              
                14
                15
                     Plug 'jiangmiao/auto-pairs'

              
                15
                16
                     Plug 'neoclide/coc.nvim', {'branch': 'release'}

              
                16
                
                -    Plug 'easymotion/vim-easymotion'

              
                17
                17
                 

              
                18
                18
                     " Language support

              
                19
                19
                     Plug 'pangloss/vim-javascript', { 'for': 'javascript' }

              ···
                75
                75
                 colorscheme NeoSolarized

              
                76
                76
                 

              
                77
                77
                 

              
                78
                
                -" =======================

              
                79
                
                -" == Plugins configure ==

              
                80
                
                -" =======================

              
                81
                
                -

              
                82
                
                -"""""""" Lightline """""""" 

              
                
                78
                +" == Plugins configure

              
                
                79
                +" Lightline

              
                
                80
                +set noshowmode

              
                83
                81
                 let g:lightline = {

              
                84
                82
                 \ 'colorscheme': 'selenized_dark',

              
                85
                83
                 \ 'active': {

              
                86
                84
                 \   'left':  [ [ 'mode', 'paste' ],

              
                87
                
                -\              [ 'readonly', 'modified', 'gitbranch' ] ],

              
                
                85
                +\              [ 'readonly', 'modified' ] ],

              
                88
                86
                 \   'right': [ [ 'lineinfo' ],

              
                89
                87
                 \              [ 'percent' ],

              
                90
                88
                 \              [ 'filename', 'fileencoding', 'filetype' ] ]

              
                91
                89
                 \ }, }

              
                92
                
                -set noshowmode

              
                93
                
                -"""""""""""""""""""""""""""

              
                94
                90
                 

              
                95
                
                -""""""""" Nerdtree """"""""

              
                
                91
                +" Nerdtree

              
                96
                92
                 map <C-b> :NERDTreeToggle<CR>

              
                97
                93
                 let g:NERDTreeWinPos="right"

              
                98
                94
                 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']

              
                99
                95
                 let NERDTreeMinimalUI = 1

              
                100
                96
                 let NERDTreeShowLineNumbers=0

              
                101
                
                -"""""""""""""""""""""""""""

              
                102
                97
                 

              
                103
                
                -"""""""""""" Coc """"""""""

              
                
                98
                +" Coc

              
                104
                99
                 inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"

              
                105
                100
                 inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"

              
                106
                
                -"""""""""""""""""""""""""""

              
                107
                101
                 

              
                108
                
                -""""""""" Markdown """"""""

              
                
                102
                +" Markdown

              
                109
                103
                 let g:vim_markdown_folding_disabled = 1

              
                110
                
                -"""""""""""""""""""""""""

              
                111
                
                -

              
                112
                104
                 

              
                113
                
                -"""""" Easymotion """""""""

              
                
                105
                +" Easymotion

              
                114
                106
                 let g:EasyMotion_do_mapping = 0

              
                115
                107
                 let g:EasyMotion_smartcase = 1

              
                116
                108
                 nmap f <Plug>(easymotion-s)

              
                117
                109
                 map  <Leader>w <Plug>(easymotion-bd-w)

              
                118
                110
                 nmap F <Plug>(easymotion-overwin-line)

              
                119
                111
                 nmap s <Plug>(easymotion-overwin-f2)

              
                120
                
                -"""""""""""""""""""""""""""

              
                121
                
                -

              
                122
                112
                 

              
                123
                
                -

              
                124
                
                -" ============

              
                125
                
                -" == Maping ==

              
                126
                
                -" ============

              
                127
                
                -imap ii <Esc>

              
                
                113
                +" CtrlP

              
                
                114
                +map <C-p> :CtrlP<CR>

              
                
                115
                +imap <C-p> :CtrlP<CR>

              
                
                116
                +nmap <C-p> :CtrlP<CR>

              
                128
                117
                 

              
                
                118
                +" == Maping

              
                
                119
                +imap fd <Esc>

              
                129
                120
                 let mapleader=","

              
                130
                121
                 

              
                131
                122
                 " Change window

              ···
                139
                130
                 noremap <C-S-Tab> :tabprev<CR>

              
                140
                131
                 noremap <C-n> :tabnew<CR>

              
                141
                132
                 noremap <C-t> :tabnew<CR>

              
                142
                
                -noremap <C-w> :tabclose<CR>

              
                
                133
                +noremap <C-S-w> :tabclose<CR>

              
                143
                134
                 noremap <leader>1 :tabn 1<CR>

              
                144
                135
                 noremap <leader>2 :tabn 2<CR>

              
                145
                136
                 noremap <leader>3 :tabn 3<CR>

              ···
                151
                142
                 noremap <leader>9 :tabn 9<CR>

              
                152
                143
                 noremap <leader>n :bnext<CR>

              
                153
                144
                 noremap <leader>p :bprev<CR>

              
                154
                
                -

              
                155
                
                -let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"

              
                156
                
                -let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"

              
M config/ranger/rc.conf
···
                24
                24
                 

              
                25
                25
                 ### Preview

              
                26
                26
                 set preview_images true

              
                27
                
                -set preview_images_method w3m

              
                
                27
                +set preview_images_method ueberzug

              
                28
                28
                 set w3m_delay 0.02

              
                29
                29
                 set w3m_offset 0

              
                30
                30
                 

              
M script/dmenu/dmenu-config-edit.sh
···
                1
                1
                 #!/bin/sh

              
                2
                
                -

              
                3
                2
                 declare options=("i3

              
                4
                3
                 berry

              
                5
                4
                 qtile

              ···
                8
                7
                 picom

              
                9
                8
                 dunst

              
                10
                9
                 qutebrowser

              
                
                10
                +taskwarrior

              
                11
                11
                 tmux

              
                12
                12
                 vim

              
                13
                
                -neovim

              
                14
                
                -kitty

              
                15
                
                -taskwarrior

              
                16
                
                -fish

              
                17
                
                -zsh")

              
                
                13
                +ranger

              
                
                14
                +term

              
                
                15
                +sh")

              
                18
                16
                 

              
                19
                
                -choice=$(echo -e "${options[@]}" | dmenu -p 'Edit config file: ' $@)

              
                
                17
                +choice=$(echo -e "${options[@]}" | dmenu -p 'Edit config file' $@)

              
                20
                18
                 case "$choice" in

              
                21
                19
                 	i3) choice="$HOME/.config/i3/config" ;;

              
                22
                20
                     qtile) 

              
                23
                21
                         opt=$(echo -e "config.py\nautostart"|dmenu -p 'Qtile' $@)

              
                24
                22
                         case "$opt" in

              
                25
                23
                             "config.py") choice="$HOME/.config/qtile/config.py" ;;

              
                26
                
                -            "autostart") choice="$HOME/.config/qtile/autostart.sh" ;;

              
                
                24
                +            "autostart.sh") choice="$HOME/.config/qtile/autostart.sh" ;;

              
                27
                25
                         esac

              
                28
                26
                     ;;

              
                29
                27
                     berry)

              ···
                44
                42
                         esac

              
                45
                43
                     ;;

              
                46
                44
                 	picom) choice="$HOME/.config/picom.conf" ;;

              
                47
                
                -    tmux) choice="$HOME/.tmux.conf" ;;

              
                48
                45
                 	polybar) choice="$HOME/.config/polybar/config" ;;

              
                49
                46
                     qutebrowser)

              
                50
                
                -        why=$(echo -e "config.py\nquickmarks" | dmenu -h 24 -p 'Qutebrowser')

              
                
                47
                +        why=$(echo -e "config.py\nquickmarks" | dmenu -p 'Qutebrowser')

              
                51
                48
                         case "$why" in

              
                52
                49
                             "config.py") choice="$HOME/.config/qutebrowser/config.py" ;;

              
                53
                50
                             "quickmarks") choice="$HOME/.config/qutebrowser/quickmarks" ;;

              
                54
                51
                         esac

              
                55
                52
                     ;;

              
                56
                
                -	vim) choice="$HOME/.vimrc" ;;

              
                57
                
                -    nvim) choice="$HOME/.config/nvim/init.vim" ;;

              
                
                53
                +    ranger)

              
                
                54
                +        why=$(echo -e "rc.conf\nrifle.conf")

              
                
                55
                +        case "$why" in

              
                
                56
                +            "rc.conf") choice="$HOME/.config/ranger/rc.conf" ;;

              
                
                57
                +            "rifle.conf") choice="$HOME/.config/ranger/rifle.conf" ;;

              
                
                58
                +        esac

              
                
                59
                +    ;;

              
                
                60
                +	vim) 

              
                
                61
                +        why=$(echo -e "nvim\nvim"|dmenu -p 'Vim' $@)

              
                
                62
                +        case "$why" in

              
                
                63
                +            vim) choice="$HOME/.vimrc" ;;

              
                
                64
                +            nvim) choice="$HOME/.config/nvim/init.vim" ;;

              
                
                65
                +        esac

              
                
                66
                +    ;;

              
                
                67
                +    tmux) choice="$HOME/.tmux.conf" ;;

              
                
                68
                +    term)

              
                
                69
                +        why=$(echo -e "kitty\nalacritty"|demnu -p "Term" $@)

              
                
                70
                +        case "$why" in

              
                
                71
                +            kitty) choice="$HOME/.config/kitty/kitty.conf" ;;

              
                
                72
                +            alacritty) choice="$hoME/.config/alacritty/alacritty.yml" ;;

              
                
                73
                +        esac

              
                
                74
                +    ;;

              
                58
                75
                 	dunst) choice="$HOME/.config/dunst/dunstrc" ;;

              
                59
                
                -	zsh) choice="$HOME/.zshrc" ;;

              
                
                76
                +    sh)

              
                
                77
                +        why=$(echo -e "zsh\nfish\nbash"|dmenu -p "Shell" $@)

              
                
                78
                +        case "$why" in

              
                
                79
                +            zsh) choice="$HOME/.zshrc" ;;

              
                
                80
                +            fish) choice="$HOME/.config/fish/config.fish" ;;

              
                
                81
                +            bash) choice="$hoME/.bashrc"

              
                
                82
                +        esac

              
                
                83
                +    ;;

              
                60
                84
                     taskwarior) choice="$HOME/.taskrc" ;;

              
                61
                
                -    fish) choice="$HOME/.config/fish/config.fish" ;;

              
                62
                
                -    kitty) choice="$HOME/.config/kitty/kitty.conf" ;;

              
                63
                85
                 	*) exit 1 ;;

              
                64
                86
                 esac

              
                65
                87
                 kitty -e nvim "$choice"