[vim] add plugins for Racket and fzf

pull/28/head
Alpha Chen 7 years ago
parent 8ae7d6274e
commit 5b73ac0cd4

9
.gitmodules vendored

@ -94,3 +94,12 @@
[submodule ".vim/pack/alpha/start/vim-sexp"] [submodule ".vim/pack/alpha/start/vim-sexp"]
path = .vim/pack/alpha/start/vim-sexp path = .vim/pack/alpha/start/vim-sexp
url = git@github.com:guns/vim-sexp.git url = git@github.com:guns/vim-sexp.git
[submodule ".vim/pack/alpha/start/fzf.vim"]
path = .vim/pack/alpha/start/fzf.vim
url = git@github.com:junegunn/fzf.vim.git
[submodule ".vim/pack/alpha/start/scribble.vim"]
path = .vim/pack/alpha/start/scribble.vim
url = git@github.com:vim-scripts/scribble.vim.git
[submodule ".vim/pack/alpha/start/rainbow_parentheses.vim"]
path = .vim/pack/alpha/start/rainbow_parentheses.vim
url = git@github.com:kien/rainbow_parentheses.vim.git

@ -0,0 +1 @@
au VimEnter * RainbowParenthesesToggle

@ -1 +1,2 @@
highlight rubyDefine ctermbg=235
set foldmethod=syntax set foldmethod=syntax

@ -0,0 +1 @@
set makeprg=scribble\ --dest\ scribble\ %

@ -0,0 +1 @@
au BufRead,BufNewFile *.scrbl set filetype=scribble

@ -0,0 +1 @@
Subproject commit f31a2925fee37b4b5f9a3fa115df4ae99a2a027c

@ -0,0 +1 @@
Subproject commit eb8baa5428bde10ecc1cb14eed1d6e16f5f24695

@ -0,0 +1 @@
Subproject commit 73cef95895420c64b988ef11f79a75d1058e26f7

@ -144,27 +144,10 @@ nnoremap <leader>a :A<cr>
" dispatch " dispatch
nnoremap <leader>d :Dispatch<cr> nnoremap <leader>d :Dispatch<cr>
" lightline " fzf
let g:lightline = { if isdirectory('/usr/local/opt/fzf')
\ 'component': { set rtp+=/usr/local/opt/fzf
\ 'lineinfo': ' %3l:%-2v', nmap <Leader>b :Buffers<CR>
\ }, nmap <Leader>f :Files<CR>
\ 'component_function': { nmap <Leader>t :Tags<CR>
\ 'readonly': 'LightlineReadonly', endif
\ 'fugitive': 'LightlineFugitive'
\ },
\ 'separator': { 'left': '', 'right': '' },
\ 'subseparator': { 'left': '', 'right': '' }
\ }
function! LightlineReadonly()
return &readonly ? '' : ''
endfunction
function! LightlineFugitive()
if exists('*fugitive#head')
let branch = fugitive#head()
return branch !=# '' ? ''.branch : ''
endif
return ''
endfunction

Loading…
Cancel
Save