Add animation to vim
This commit is contained in:
parent
c083c2b083
commit
812e92b08a
3 changed files with 16 additions and 9 deletions
13
nvim/nvim.symlink/after/plugin/animate.vim
Normal file
13
nvim/nvim.symlink/after/plugin/animate.vim
Normal file
|
@ -0,0 +1,13 @@
|
|||
if ! exists('g:animate#loaded')
|
||||
finish
|
||||
endif
|
||||
|
||||
let g:animate#distribute_space = 0
|
||||
let g:animate#duration = 140.0
|
||||
|
||||
let g:fzf_layout = {
|
||||
\ 'window': 'new | wincmd J | resize 1 | call animate#window_percent_height(0.3)'
|
||||
\ }
|
||||
|
||||
nnoremap <leader>v :vnew<cr>:vertical resize 1<cr>:call animate#window_percent_width(0.5)<cr>
|
||||
nnoremap <leader>s :new<cr>:resize 1<cr>:call animate#window_percent_height(0.5)<cr>
|
|
@ -4,12 +4,3 @@ endif
|
|||
|
||||
nnoremap <leader>o :Files<cr>
|
||||
nnoremap <leader>b :Buffers<cr>
|
||||
|
||||
" Making splits a little bit better.
|
||||
"
|
||||
" I open splits before opening files because I can never remember the
|
||||
" keyboard incantations in FZF to open in splits, but I get annoyed for
|
||||
" the brief moment that the same buffer was shown when I do :vsp or :sp.
|
||||
" I don't have to have this problem anymore.
|
||||
nnoremap <leader>v :vnew<cr>:Files<cr>
|
||||
nnoremap <leader>s :new<cr>:Files<cr>
|
||||
|
|
|
@ -33,6 +33,9 @@ call plug#begin()
|
|||
|
||||
" JSON with comments, just for TypeScript
|
||||
Plug 'kevinoid/vim-jsonc'
|
||||
|
||||
" I can't believe I'm doing this.
|
||||
Plug 'camspiers/animate.vim'
|
||||
call plug#end()
|
||||
|
||||
" I have a true colour terminal, and I will have true colours in my Vim
|
||||
|
|
Loading…
Add table
Reference in a new issue