mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 13:42:23 +00:00
asdf
This commit is contained in:
parent
4654cec325
commit
f0a70fc32b
4 changed files with 85 additions and 17 deletions
|
@ -1,5 +1,7 @@
|
||||||
let g:netrw_dirhistmax =10
|
let g:netrw_dirhistmax =10
|
||||||
let g:netrw_dirhistcnt =2
|
let g:netrw_dirhistcnt =4
|
||||||
|
let g:netrw_dirhist_4='/home/leon/a-box-of-gruv/styles'
|
||||||
|
let g:netrw_dirhist_3='/home/leon/tmp/pythonshit'
|
||||||
let g:netrw_dirhist_2='/home/leon/dotfiles/.vim'
|
let g:netrw_dirhist_2='/home/leon/dotfiles/.vim'
|
||||||
let g:netrw_dirhist_1='/home/leon/.config/discord'
|
let g:netrw_dirhist_1='/home/leon/.config/discord'
|
||||||
let g:netrw_dirhist_0='/home/leon/coding/projects/eww/src'
|
let g:netrw_dirhist_0='/home/leon/coding/projects/eww/src'
|
||||||
|
@ -8,5 +10,3 @@ let g:netrw_dirhist_8='/home/leon/coding/plover-plugins/plover_retro_surround'
|
||||||
let g:netrw_dirhist_7='/home/leon/coding/plover-plugins/plover_retro_surround/plover_retro_surround.egg-info'
|
let g:netrw_dirhist_7='/home/leon/coding/plover-plugins/plover_retro_surround/plover_retro_surround.egg-info'
|
||||||
let g:netrw_dirhist_6='/home/leon/.config/coc/extensions'
|
let g:netrw_dirhist_6='/home/leon/.config/coc/extensions'
|
||||||
let g:netrw_dirhist_5='/home/leon/.config/elkowar_phocus'
|
let g:netrw_dirhist_5='/home/leon/.config/elkowar_phocus'
|
||||||
let g:netrw_dirhist_4='/home/leon/coding/projects/eww/docs'
|
|
||||||
let g:netrw_dirhist_3='/home/leon/tmp/test/content'
|
|
||||||
|
|
58
init.vim
58
init.vim
|
@ -3,6 +3,9 @@
|
||||||
" \ V /| | | | | | | | | (__
|
" \ V /| | | | | | | | | (__
|
||||||
" \_/ |_|_| |_| |_|_| \___|
|
" \_/ |_|_| |_| |_|_| \___|
|
||||||
|
|
||||||
|
|
||||||
|
set runtimepath^=~/coding/tmp/coc.nvim/
|
||||||
|
|
||||||
let g:vim_config_root = expand('<sfile>:p:h')
|
let g:vim_config_root = expand('<sfile>:p:h')
|
||||||
let $VIM_ROOT = g:vim_config_root
|
let $VIM_ROOT = g:vim_config_root
|
||||||
|
|
||||||
|
@ -64,6 +67,8 @@ hi LineNr ctermbg=NONE guibg=NONE
|
||||||
hi Comment cterm=italic
|
hi Comment cterm=italic
|
||||||
let &t_ut=''
|
let &t_ut=''
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
" hide empty line ~'s
|
" hide empty line ~'s
|
||||||
highlight EndOfBuffer ctermfg=black ctermbg=black guibg=NONE guifg='#282828'
|
highlight EndOfBuffer ctermfg=black ctermbg=black guibg=NONE guifg='#282828'
|
||||||
|
|
||||||
|
@ -122,6 +127,20 @@ augroup END
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
" autoclose empty unedited buffers
|
||||||
|
function! CleanNoNameEmptyBuffers()
|
||||||
|
let buffers = filter(range(1, bufnr('$')), 'buflisted(v:val) && empty(bufname(v:val)) && bufwinnr(v:val) < 0 && (getbufline(v:val, 1, "$") == [""])')
|
||||||
|
if !empty(buffers)
|
||||||
|
exe 'bd '.join(buffers, ' ')
|
||||||
|
else
|
||||||
|
echo 'No buffer deleted'
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
autocmd BufCreate * execute 'call CleanNoNameEmptyBuffers()'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
" ===============
|
" ===============
|
||||||
" Basic remapping
|
" Basic remapping
|
||||||
" ===============
|
" ===============
|
||||||
|
@ -134,8 +153,8 @@ nnoremap <C-H> <C-W><C-H>
|
||||||
set splitbelow splitright
|
set splitbelow splitright
|
||||||
|
|
||||||
" Buffer switching
|
" Buffer switching
|
||||||
noremap <silent> <leader>l :bnext<CR>
|
"noremap <silent> <leader>l :bnext<CR>
|
||||||
noremap <silent> <leader>h :bprevious<CR>
|
"noremap <silent> <leader>h :bprevious<CR>
|
||||||
|
|
||||||
" Disable default K mapping (would open man page of hovered word)
|
" Disable default K mapping (would open man page of hovered word)
|
||||||
nnoremap K <Nop>
|
nnoremap K <Nop>
|
||||||
|
@ -154,6 +173,8 @@ let g:detectindent_preferred_indent = 2
|
||||||
|
|
||||||
autocmd BufReadPost *.hs :set shiftwidth=2
|
autocmd BufReadPost *.hs :set shiftwidth=2
|
||||||
|
|
||||||
|
let g:vim_parinfer_filetypes = ['carp']
|
||||||
|
|
||||||
|
|
||||||
let g:sneak#label = 1
|
let g:sneak#label = 1
|
||||||
nmap <DEL> <Plug>Sneak_s
|
nmap <DEL> <Plug>Sneak_s
|
||||||
|
@ -186,7 +207,7 @@ au Syntax * RainbowParenthesesLoadSquare
|
||||||
au Syntax * RainbowParenthesesLoadBraces
|
au Syntax * RainbowParenthesesLoadBraces
|
||||||
|
|
||||||
|
|
||||||
nnoremap <C-p> :Files<CR>
|
nnoremap <silent> <C-p> :Files<CR>
|
||||||
|
|
||||||
"map <Leader>f <Plug>(easymotion-bd-f)
|
"map <Leader>f <Plug>(easymotion-bd-f)
|
||||||
"map <Leader>s <Plug>(easymotion-overwin-f2)
|
"map <Leader>s <Plug>(easymotion-overwin-f2)
|
||||||
|
@ -196,7 +217,7 @@ let g:signify_sign_add = '▍'
|
||||||
let g:signify_sign_delete = '▍'
|
let g:signify_sign_delete = '▍'
|
||||||
let g:signify_sign_delete_first_line = '▍'
|
let g:signify_sign_delete_first_line = '▍'
|
||||||
let g:signify_sign_change = '▍'
|
let g:signify_sign_change = '▍'
|
||||||
let g:signify_sign_show_text = 1
|
let g:signify_sign_show_text = 0
|
||||||
|
|
||||||
hi SignifySignDelete cterm=NONE gui=NONE guifg='#fb4934'
|
hi SignifySignDelete cterm=NONE gui=NONE guifg='#fb4934'
|
||||||
hi SignifySignChange cterm=NONE gui=NONE guifg='#83a598'
|
hi SignifySignChange cterm=NONE gui=NONE guifg='#83a598'
|
||||||
|
@ -250,6 +271,35 @@ autocmd User AirlineAfterTheme call s:update_highlights()
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
" Barbar --------------------------------------------------------------------------- {{{
|
||||||
|
|
||||||
|
if has('nvim')
|
||||||
|
let bufferline = get(g:, 'bufferline', {})
|
||||||
|
let bufferline.auto_hide = v:false
|
||||||
|
let bufferline.animation = v:true
|
||||||
|
let bufferline.icons = v:false
|
||||||
|
|
||||||
|
let bufferline.icon_separator_active = ' '
|
||||||
|
let bufferline.icon_separator_active = ' '
|
||||||
|
"let bufferline.icon_separator_inactive = '▎'
|
||||||
|
"let bufferline.icon_separator_inactive = '▎'
|
||||||
|
let bufferline.icon_close_tab = '◆'
|
||||||
|
let bufferline.icon_close_tab_modified = '●'
|
||||||
|
let bufferline.maximum_padding = 1
|
||||||
|
|
||||||
|
hi! BufferVisible guibg='#282828' guifg='#282828'
|
||||||
|
hi! BufferCurrent guibg='#689d6a' guifg='#282828'
|
||||||
|
hi! BufferInactive guibg='#3c3836' guifg='#282828'
|
||||||
|
hi! BufferTabpageFill guibg='#282828' guifg='#282828'
|
||||||
|
hi! BufferCurrentSign guibg='#689d6a' guifg='#689d6a'
|
||||||
|
|
||||||
|
hi! BufferVisibleMod guibg='#282828' guifg='#8ec07c'
|
||||||
|
hi! BufferCurrentMod guibg='#282828' guifg='#8ec07c'
|
||||||
|
hi! BufferInactiveMod guibg='#3c3836' guifg='#8ec07c'
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
" }}}
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
17
plugins.vim
17
plugins.vim
|
@ -6,7 +6,6 @@ endif
|
||||||
|
|
||||||
|
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
|
|
||||||
Plug 'tpope/vim-repeat'
|
Plug 'tpope/vim-repeat'
|
||||||
|
|
||||||
Plug 'junegunn/goyo.vim', {'on': 'Goyo'}
|
Plug 'junegunn/goyo.vim', {'on': 'Goyo'}
|
||||||
|
@ -27,6 +26,11 @@ call plug#begin('~/.vim/plugged')
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
|
|
||||||
|
" buffer line
|
||||||
|
if has('nvim')
|
||||||
|
Plug 'romgrk/barbar.nvim'
|
||||||
|
endif
|
||||||
|
|
||||||
"Plug 'morhetz/gruvbox'
|
"Plug 'morhetz/gruvbox'
|
||||||
Plug 'gruvbox-community/gruvbox'
|
Plug 'gruvbox-community/gruvbox'
|
||||||
|
|
||||||
|
@ -71,15 +75,21 @@ call plug#begin('~/.vim/plugged')
|
||||||
|
|
||||||
Plug 'tommcdo/vim-exchange'
|
Plug 'tommcdo/vim-exchange'
|
||||||
|
|
||||||
|
if !has('nvim')
|
||||||
Plug 'puremourning/vimspector'
|
Plug 'puremourning/vimspector'
|
||||||
|
endif
|
||||||
|
|
||||||
Plug 'svermeulen/vim-yoink'
|
Plug 'svermeulen/vim-yoink'
|
||||||
|
|
||||||
Plug 'Shougo/echodoc.vim'
|
Plug 'Shougo/echodoc.vim'
|
||||||
Plug 'kien/rainbow_parentheses.vim'
|
Plug 'kien/rainbow_parentheses.vim'
|
||||||
|
|
||||||
|
Plug 'bhurlow/vim-parinfer'
|
||||||
|
|
||||||
" Language Plugins ----------------------------------------------------- {{{
|
" Language Plugins ----------------------------------------------------- {{{
|
||||||
|
|
||||||
|
Plug 'ziglang/zig.vim'
|
||||||
|
Plug 'bduggan/vim-raku'
|
||||||
Plug 'LnL7/vim-nix'
|
Plug 'LnL7/vim-nix'
|
||||||
|
|
||||||
Plug 'kevinoid/vim-jsonc'
|
Plug 'kevinoid/vim-jsonc'
|
||||||
|
@ -107,7 +117,10 @@ call plug#begin('~/.vim/plugged')
|
||||||
Plug 'mattn/webapi-vim'
|
Plug 'mattn/webapi-vim'
|
||||||
|
|
||||||
|
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
"Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
Plug 'thyrgle/vim-dyon'
|
||||||
|
|
||||||
|
"Plug 'mxw/vim-prolog'
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
|
@ -7,13 +7,16 @@ call which_key#register('<Space>', "g:which_key_map")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
"\ 'h' : 'which_key_ignore', 'l' : 'which_key_ignore' ,
|
||||||
|
"\ 'h' : ':bprevious', 'l' : ':bnext' ,
|
||||||
let g:which_key_map = {
|
let g:which_key_map = {
|
||||||
\ 'h' : 'which_key_ignore', 'l' : 'which_key_ignore',
|
\ 'h' : [':BufferPrevious', 'prev buffer'], 'l' : [':BufferNext', 'next buffer'] ,
|
||||||
"\ 'f' : 'which_key_ignore', 's': 'which_key_ignore' ,
|
\ 'f' : 'which_key_ignore', 's': 'which_key_ignore' ,
|
||||||
\ 'c' : { 'name': '+comment_out' },
|
\ 'c' : { 'name': '+comment_out' },
|
||||||
\ 'e' : { 'name': '+emmet' },
|
\ 'e' : { 'name': '+emmet' },
|
||||||
\ '[' : ['<Plug>(YoinkPostPasteSwapBack)', 'Swap last paste backwards' ],
|
\ '[' : ['<Plug>(YoinkPostPasteSwapBack)', 'Swap last paste backwards' ],
|
||||||
\ ']' : ['<Plug>(YoinkPostPasteSwapForward)', 'Swap last paste backwards' ],
|
\ ']' : ['<Plug>(YoinkPostPasteSwapForward)', 'Swap last paste backwards' ],
|
||||||
|
\ ':' : [':Commands' , 'Search command with fzf' ],
|
||||||
\ 'z' : { 'name': '+folds', 'c': ['foldclose', 'close fold'],
|
\ 'z' : { 'name': '+folds', 'c': ['foldclose', 'close fold'],
|
||||||
\ 'o': ['foldopen', 'open fold'] ,
|
\ 'o': ['foldopen', 'open fold'] ,
|
||||||
\ }
|
\ }
|
||||||
|
@ -35,7 +38,8 @@ let g:which_key_map['m'] = {
|
||||||
\ 'n' : [ '<Plug>(coc-rename)' , 'rename' ] ,
|
\ 'n' : [ '<Plug>(coc-rename)' , 'rename' ] ,
|
||||||
\ 'F' : [ '<Plug>(coc-format-selected)' , 'format selection' ] ,
|
\ 'F' : [ '<Plug>(coc-format-selected)' , 'format selection' ] ,
|
||||||
\ 'f' : [ '<Plug>(coc-format)' , 'format file' ] ,
|
\ 'f' : [ '<Plug>(coc-format)' , 'format file' ] ,
|
||||||
\ 'v' : [ ':CocCommand actions.open' , 'apply codeaction' ] ,
|
"\ 'v' : [ ':CocCommand actions.open' , 'apply codeaction' ] ,
|
||||||
|
\ 'v' : [ '<Plug>(coc-codeaction)' , 'apply codeaction' ] ,
|
||||||
\ 'V' : [ '<Plug>(coc-codeaction)' , 'codeaction current buffer' ] ,
|
\ 'V' : [ '<Plug>(coc-codeaction)' , 'codeaction current buffer' ] ,
|
||||||
\ 'e' : [ ':CocList diagnostics' , 'list all errors' ] ,
|
\ 'e' : [ ':CocList diagnostics' , 'list all errors' ] ,
|
||||||
\ 'L' : [ '<Plug>(coc-diagnostic-next)' , 'go to next error' ] ,
|
\ 'L' : [ '<Plug>(coc-diagnostic-next)' , 'go to next error' ] ,
|
||||||
|
@ -72,11 +76,12 @@ let g:which_key_map['v'] = {
|
||||||
\ 'i' : [':IndentGuidesToggle' , 'toggle indent guides' ] ,
|
\ 'i' : [':IndentGuidesToggle' , 'toggle indent guides' ] ,
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
|
" :bwipeout! bdelete!
|
||||||
let g:which_key_map['b'] = {
|
let g:which_key_map['b'] = {
|
||||||
\ 'name': '+buffers' ,
|
\ 'name': '+buffers',
|
||||||
\ 'b' : ['Buffers' , 'select open buffer' ] ,
|
\ 'b' : ['BufferPick' , 'select open buffer' ] ,
|
||||||
\ 'c' : [':bdelete!' , 'close open buffer' ] ,
|
\ 'c' : ['BufferClose', 'close open buffer' ] ,
|
||||||
\ 'w' : [':bwipeout!' , 'wipeout open buffer' ] ,
|
\ 'w' : ['BufferWipeout', 'wipeout open buffer' ] ,
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
let g:which_key_map['x'] = {
|
let g:which_key_map['x'] = {
|
||||||
|
|
Loading…
Reference in a new issue