Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
7cb4180c0f
commit
2f5b8bf090
@ -5,13 +5,25 @@ if ! filereadable(system('echo -n "$HOME/.config/nvim/autoload/plug.vim"'))
|
|||||||
autocmd VimEnter * PlugInstall
|
autocmd VimEnter * PlugInstall
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let mapleader = ","
|
let mapleader = " "
|
||||||
|
let g:python3_host_prog = expand('/usr/src/python')
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set softtabstop=4
|
set softtabstop=4
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
|
set nocompatible
|
||||||
|
set nohlsearch
|
||||||
|
set incsearch
|
||||||
|
set noshowmode
|
||||||
|
set cmdheight=1
|
||||||
|
set encoding=utf-8
|
||||||
|
set guicursor=
|
||||||
|
set undofile
|
||||||
|
set incsearch
|
||||||
|
set scrolloff=8
|
||||||
au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
|
au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
|
||||||
let g:python3_host_prog = expand('/usr/src/python')
|
filetype plugin indent on
|
||||||
|
syntax on
|
||||||
|
|
||||||
" plugins
|
" plugins
|
||||||
call plug#begin('~/.config/nvim/plugged')
|
call plug#begin('~/.config/nvim/plugged')
|
||||||
@ -60,6 +72,8 @@ call plug#begin('~/.config/nvim/plugged')
|
|||||||
" coc for prettier
|
" coc for prettier
|
||||||
Plug 'neoclide/coc-prettier', {'do': 'yarn install --frozen-lockfile'}
|
Plug 'neoclide/coc-prettier', {'do': 'yarn install --frozen-lockfile'}
|
||||||
|
|
||||||
|
" Enable gentoo-syntax in vim
|
||||||
|
Plug 'gentoo/gentoo-syntax'
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
@ -76,23 +90,16 @@ set statusline+=%#Search#
|
|||||||
set statusline+=\ %l/%L
|
set statusline+=\ %l/%L
|
||||||
set statusline+=\ [%c]
|
set statusline+=\ [%c]
|
||||||
|
|
||||||
set nocompatible
|
|
||||||
set hlsearch
|
|
||||||
set incsearch
|
|
||||||
set noshowmode
|
|
||||||
set cmdheight=1
|
|
||||||
syntax on
|
|
||||||
filetype plugin indent on
|
|
||||||
set encoding=utf-8
|
|
||||||
|
|
||||||
" fzf
|
" fzf
|
||||||
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
|
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
|
||||||
command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0)
|
command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0)
|
||||||
set grepprg=rg\ --vimgrep
|
set grepprg=rg\ --vimgrep
|
||||||
nmap <Leader>f :FZF<CR>
|
nmap <Leader>a :Buffers<CR>
|
||||||
nmap <Leader>b :Buffers<CR>
|
nmap <Leader>s :Rg<CR>
|
||||||
nmap <Leader>s :Files<CR>
|
nmap <Leader>d :Files<CR>
|
||||||
nmap <Leader>/ :Rg<CR>
|
|
||||||
|
nnoremap <Leader>= :vertical resize +5<CR>
|
||||||
|
nnoremap <Leader>- :vertical resize -5<CR>
|
||||||
|
|
||||||
" livepreviewer
|
" livepreviewer
|
||||||
let g:livepreview_previewer = 'mupdf'
|
let g:livepreview_previewer = 'mupdf'
|
||||||
|
@ -4,13 +4,10 @@ echo
|
|||||||
echo -e $(date)
|
echo -e $(date)
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
|
sudo emerge --sync
|
||||||
sudo $HOME/.local/bin/eix-repos-sync
|
sudo $HOME/.local/bin/eix-repos-sync
|
||||||
sudo eix-sync -a
|
|
||||||
sudo eix-update
|
|
||||||
#sudo emerge-webrsync
|
|
||||||
#sudo emerge --sync
|
|
||||||
#sudo emaint sync -a
|
|
||||||
sudo emerge -auDN @world
|
sudo emerge -auDN @world
|
||||||
|
#sudo eix-update
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo -e $(date)
|
echo -e $(date)
|
||||||
|
@ -1,2 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
for i in /usr/repos/*/.git; do ( echo $i; cd $i/..; sudo git pull; ); done
|
|
||||||
|
if [ -e /etc/portage/make.conf ]; then
|
||||||
|
. /etc/portage/make.conf
|
||||||
|
if [ ! -d $PORTDIR/metadata/md5-cache -o -d $PORTDIR/.git ]; then
|
||||||
|
echo "updating metadata cache ..."
|
||||||
|
egencache --repo=gentoo --update
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
@ -18,5 +18,5 @@ if [ -z "$1" ]; then
|
|||||||
'-> if is-empty(it) then "No one you are following is streaming right now." else it' \
|
'-> if is-empty(it) then "No one you are following is streaming right now." else it' \
|
||||||
-o table
|
-o table
|
||||||
else
|
else
|
||||||
streamlink -p mpv twitch.tv/$1 ${2:-best}
|
__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 streamlink -p mpv twitch.tv/$1 ${2:-best}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user