Skip to content

Commit

Permalink
Remove unite from the default layers
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Oct 2, 2018
1 parent c0c4cd0 commit 65f40e3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Given git and Vim/NeoVim have been installed already:
$ cp ~/.space-vim/init.spacevim ~/.spacevim
```

5. Open vim, then space-vim will automatically install the missing plugins. If auto-installation fails unexpectly, please try running `:PlugInstall` manually.
5. Open vim, then space-vim will automatically detect and install the missing plugins. If auto-installation fails unexpectly, please try running `:PlugInstall` manually.

## Customize

Expand All @@ -161,8 +161,7 @@ let g:spacevim_plug_home = '~/.vim/plugged'
" Enable the existing layers in space-vim
let g:spacevim_layers = [
\ 'fzf', 'unite', 'better-defaults',
\ 'which-key',
\ 'fzf', 'better-defaults', 'which-key',
\ ]
" If you want to have more control over the layer, try using Layer command.
Expand Down Expand Up @@ -194,7 +193,7 @@ endfunction
function! UserConfig()
" If you have installed the powerline fonts and want to enable airline layer
" let g:airline_powerline_fonts=1
" let g:airline_powerline_fonts = 1
" Use gui colors in terminal if available
function! s:enable_termgui()
Expand Down
3 changes: 1 addition & 2 deletions init.spacevim
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ let g:spacevim_plug_home = '~/.vim/plugged'

" Enable the existing layers in space-vim
let g:spacevim_layers = [
\ 'fzf', 'unite', 'better-defaults',
\ 'which-key',
\ 'fzf', 'better-defaults', 'which-key',
\ ]

" If you want to have more control over the layer, try using Layer command.
Expand Down
9 changes: 8 additions & 1 deletion layers/+tools/fzf/config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ else

command! -bang -nargs=? -complete=dir Files
\ call fzf#vim#files(<q-args>, fzf#vim#with_preview(), <bang>0)
" }

command! -nargs=* Rag call spacevim#plug#fzf#AgInProject(<q-args>)
command! -bang -nargs=* Rg call spacevim#plug#fzf#Rg(<q-args>, <bang>0)
Expand All @@ -55,5 +54,13 @@ else
nnoremap <leader>rg :Rg!<cr>
vnoremap <leader>rg :call spacevim#plug#fzf#RgVisual()<CR>
if !spacevim#load('unite')
nnoremap <LocalLeader>v :call spacevim#plug#fzf#Open()<CR>
nnoremap <LocalLeader>p :call spacevim#plug#fzf#Rtp()<CR>
nnoremap <LocalLeader>fc :call spacevim#plug#fzf#FZFCmd()<CR>
nnoremap <LocalLeader>ff :call spacevim#plug#fzf#Func()<CR>
endif

" }
endif

0 comments on commit 65f40e3

Please sign in to comment.