mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update
This commit is contained in:
parent
7cf1432163
commit
2604920c97
3 changed files with 54 additions and 44 deletions
|
|
@ -5,6 +5,7 @@ call plug#begin('~/.vim/plugged')
|
|||
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 @@ call plug#begin('~/.vim/plugged')
|
|||
" 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)
|
||||
"""""""""""""""""""""""""""
|
||||
|
||||
" CtrlP
|
||||
map <C-p> :CtrlP<CR>
|
||||
imap <C-p> :CtrlP<CR>
|
||||
nmap <C-p> :CtrlP<CR>
|
||||
|
||||
|
||||
" ============
|
||||
" == Maping ==
|
||||
" ============
|
||||
imap ii <Esc>
|
||||
|
||||
" == 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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 @@ case "$choice" in
|
|||
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
|
||||
;;
|
||||
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" ;;
|
||||
dunst) choice="$HOME/.config/dunst/dunstrc" ;;
|
||||
zsh) choice="$HOME/.zshrc" ;;
|
||||
taskwarior) choice="$HOME/.taskrc" ;;
|
||||
fish) choice="$HOME/.config/fish/config.fish" ;;
|
||||
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" ;;
|
||||
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" ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
kitty -e nvim "$choice"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue