vim colors ++

This commit is contained in:
Henrik Bakken
2021-04-27 15:35:48 +02:00
parent f656bded97
commit 94691be75a
4 changed files with 35 additions and 32 deletions
+1 -5
View File
@@ -6,10 +6,6 @@ RESOLUTION=$(xrandr -q|sed -n 's/.*current[ ]\([0-9]*\) x \([0-9]*\),.*/\1x\2/p'
# lock the screen # lock the screen
import -silent -window root jpeg:- | convert - -scale 20% -blur 0x2.5 -resize 500% RGB:- | \ import -silent -window root jpeg:- | convert - -scale 20% -blur 0x2.5 -resize 500% RGB:- | \
i3lock --raw $RESOLUTION:rgb -i /dev/stdin -e $@ i3lock --raw $RESOLUTION:rgb -i /dev/stdin -e $@
# TODO fix - doesn't lock!
# sleep 1 adds a small delay to prevent possible race conditions with suspend
sleep 1
xset dpms force off
exit 0 exit 0
+2
View File
@@ -102,6 +102,8 @@ bindsym $mod+Shift+F6 exec i3-sensible-terminal -e 'ncspot'
bindsym $mod+F9 exec --no-startup-id picom -b bindsym $mod+F9 exec --no-startup-id picom -b
bindsym $mod+Shift+F9 exec --no-startup-id pkill picom bindsym $mod+Shift+F9 exec --no-startup-id pkill picom
bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'" bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'"
bindsym $mod+F12 --release exec "xrandr --output DP-4 --mode 5120x1440 --primary"
bindsym $mod+Shift+F12 --release exec "xrandr --output DP-4 --mode 2560x1440 --primary"
bindsym $mod+0 mode "$mode_system" bindsym $mod+0 mode "$mode_system"
bindsym $mod+z mode "resize" bindsym $mod+z mode "resize"
+3 -3
View File
@@ -3,11 +3,11 @@
"suggest.autoTrigger": "always", "suggest.autoTrigger": "always",
"python.linting.enabled": true, "python.linting.enabled": true,
"python.linting.flake8Enabled": true, "python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true, "python.linting.mypyEnabled": false,
"python.linting.pylintEnabled": false, "python.linting.pylintEnabled": false,
"python.analysis.useLibraryCodeForTypes": false, "python.analysis.useLibraryCodeForTypes": false,
/* "python.linting.pylintArgs": ["--disable=all", "--enable=F,E,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode"], */ "python.linting.flake8Args": ["--ignore=E731,W503,E501"],
"python.linting.flake8Args": ["--ignore=E731,W503"], "python.linting.mypyArgs": ["--disallow-any-generics","--ignore-missing-imports","--follow-imports=normal","--show-column-numbers"],
"diagnostic.showUnused": false, "diagnostic.showUnused": false,
"git.enableGutters": true, "git.enableGutters": true,
"yaml.format.enable": true, "yaml.format.enable": true,
+29 -24
View File
@@ -47,14 +47,14 @@ Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
" tmux " tmux
Plug 'christoomey/vim-tmux-navigator' " integrate movement in tmux and vim Plug 'christoomey/vim-tmux-navigator' " integrate movement in tmux and vim
" aesthetics " aesthetics
Plug 'chriskempson/base16-vim' " base16 themes
Plug 'chrisbra/Colorizer' " show color codes Plug 'chrisbra/Colorizer' " show color codes
Plug 'junegunn/rainbow_parentheses.vim' " colorize parentheses Plug 'junegunn/rainbow_parentheses.vim' " colorize parentheses
Plug 'gillyb/stable-windows'
" themes " themes
Plug 'chriskempson/base16-vim'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
Plug 'junegunn/seoul256.vim' Plug 'junegunn/seoul256.vim'
Plug 'sainnhe/gruvbox-material'
Plug 'skbolton/embark' Plug 'skbolton/embark'
call plug#end() call plug#end()
@@ -62,26 +62,19 @@ call plug#end()
" SETTINGS " SETTINGS
" ----------------------------------------------------------------------------- " -----------------------------------------------------------------------------
" colors " colors
if filereadable(expand("~/.vimrc_background")) if !&termguicolors
let base16colorspace=256 set termguicolors
source ~/.vimrc_background
endif endif
if $TERM =~ '^\(rxvt\)\(-.*\)\?$' if !exists('g:colors_name')
set notermguicolors " let g:seoul256_background=233
else " silent! colorscheme seoul256
set termguicolors silent! colorscheme base16-monokai
" silent! colorscheme base16-tomorrow-night
" seoul256 theme config: dark 233-239, light 252-256
endif endif
highlight Normal guibg=NONE ctermbg=NONE
" Transparent Background (For i3 and compton) highlight LineNr guibg=NONE ctermbg=NONE
" highlight Normal guibg=NONE ctermbg=NONE highlight clear SignColumn
" highlight LineNr guibg=NONE ctermbg=NONE
" highlight clear SignColumn " SignColumn should match background
" seoul256 theme config (dark 233-239, light 252-256)
let g:seoul256_background=233
colo seoul256
" colo base16-tomorrow-night
" colo gruvbox-material
" statusline " statusline
set cmdheight=2 set cmdheight=2
@@ -91,7 +84,8 @@ let g:airline_powerline_fonts=1
"let g:airline_theme='badwolf' "let g:airline_theme='badwolf'
"let g:airline_theme='silver' "let g:airline_theme='silver'
"let g:airline_theme='raven' "let g:airline_theme='raven'
let g:airline_theme='base16_gruvbox_dark_hard' " let g:airline_theme='laederon'
let g:airline_theme='ayu_dark'
let g:airline#extensions#tabline#enabled=1 let g:airline#extensions#tabline#enabled=1
let g:airline#extensions#tabline#show_splits=0 let g:airline#extensions#tabline#show_splits=0
let g:airline#extensions#tabline#show_tabs=0 let g:airline#extensions#tabline#show_tabs=0
@@ -109,6 +103,10 @@ set undofile " Persistent undo
set undolevels=500 " Maximum number of changes that can be undone set undolevels=500 " Maximum number of changes that can be undone
set undoreload=5000 " Maximum number lines to save for undo on a buffer reload set undoreload=5000 " Maximum number lines to save for undo on a buffer reload
" line width ruler
set colorcolumn=80
highlight ColorColumn ctermbg=0 guibg='#3a3a3a'
" search " search
set ignorecase " Case insensitive search set ignorecase " Case insensitive search
set smartcase " ... but case sensitive when uc present set smartcase " ... but case sensitive when uc present
@@ -120,6 +118,7 @@ set scrolljump=1 " Line to scroll when cursor leaves screen
set splitright " Puts new vsplit windows to the right of the current set splitright " Puts new vsplit windows to the right of the current
set splitbelow " Puts new split windows to the bottom of the current set splitbelow " Puts new split windows to the bottom of the current
set hidden " Allow buffer switching without saving set hidden " Allow buffer switching without saving
set switchbuf=useopen
" buffer " buffer
set nowrap " Do not wrap long lines set nowrap " Do not wrap long lines
@@ -134,7 +133,7 @@ set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set fileformats=unix,dos,mac set fileformats=unix,dos,mac
" indentation " indentation
set smartindent set nosmartindent
" folds " folds
set foldmethod=indent set foldmethod=indent
@@ -235,10 +234,12 @@ let g:asterisk#keeppos=1
" stay visual when indenting " stay visual when indenting
vnoremap <Tab> >gv vnoremap <Tab> >gv
vnoremap <S-Tab> <gv vnoremap <S-Tab> <gv
vnoremap > >gv
vnoremap < <gv
noremap - _ noremap - _
" move between errors " move between errors
nmap <M-n> <Plug>(coc-diagnostic-prev) nmap <M-n> <Plug>(coc-diagnostic-prev-error)
nmap <M-m> <Plug>(coc-diagnostic-next) nmap <M-m> <Plug>(coc-diagnostic-next-error)
" GoTo code navigation " GoTo code navigation
nmap <M-,> <Plug>(coc-git-prevchunk) nmap <M-,> <Plug>(coc-git-prevchunk)
nmap <M-.> <Plug>(coc-git-nextchunk) nmap <M-.> <Plug>(coc-git-nextchunk)
@@ -310,6 +311,7 @@ command! -nargs=* -bang RG call RipgrepFzf(<q-args>, <bang>0)
"command! -bang -nargs=* Ag call fzf#vim#ag(<q-args>, {'options': '--delimiter : --nth 4..'}, <bang>0) "command! -bang -nargs=* Ag call fzf#vim#ag(<q-args>, {'options': '--delimiter : --nth 4..'}, <bang>0)
let g:fzf_preview_command='bat --color=always --plain {-1}' " Installed bat let g:fzf_preview_command='bat --color=always --plain {-1}' " Installed bat
let g:fzf_preview_grep_cmd='rg --smart-case --line-number --no-heading --color=never' let g:fzf_preview_grep_cmd='rg --smart-case --line-number --no-heading --color=never'
let g:fzf_buffers_jump = 1
" shortcuts " shortcuts
nmap <silent> <F3> :Colors<cr> nmap <silent> <F3> :Colors<cr>
nmap <silent> <F4> :CocFzfList<cr> nmap <silent> <F4> :CocFzfList<cr>
@@ -318,6 +320,8 @@ nmap <F6> <Plug>(coc-refactor)
xmap <F7> <Plug>(coc-format-selected) xmap <F7> <Plug>(coc-format-selected)
nmap <F7> <Plug>(coc-format-selected) nmap <F7> <Plug>(coc-format-selected)
nmap <F8> :CocDiagnostics<cr> nmap <F8> :CocDiagnostics<cr>
nmap <F9> :copen<cr>
nmap <F10> :vimgrep TODO **/*<cr>:copen<cr>
nmap <silent> <F11> :Commits<cr> nmap <silent> <F11> :Commits<cr>
nmap <silent> <F12> :BCommits<cr> nmap <silent> <F12> :BCommits<cr>
nmap <silent> <M-b> :Buffers<cr> nmap <silent> <M-b> :Buffers<cr>
@@ -327,6 +331,7 @@ nmap <silent> <M-r> :History<cr>
nmap <silent> <M-F> :Files<cr> nmap <silent> <M-F> :Files<cr>
nmap <silent> <M-f> :GFiles<cr> nmap <silent> <M-f> :GFiles<cr>
nmap <silent> <M-y> :Filetypes<cr> nmap <silent> <M-y> :Filetypes<cr>
nmap <silent> <M-M> :Marks<cr>
" ***************************** " *****************************
" COC CONFIGS " COC CONFIGS