Skip to content

Commit 65f40e3

Browse files
committed
Remove unite from the default layers
Close wklken#363
1 parent c0c4cd0 commit 65f40e3

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Given git and Vim/NeoVim have been installed already:
137137
$ cp ~/.space-vim/init.spacevim ~/.spacevim
138138
```
139139

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

142142
## Customize
143143

@@ -161,8 +161,7 @@ let g:spacevim_plug_home = '~/.vim/plugged'
161161
162162
" Enable the existing layers in space-vim
163163
let g:spacevim_layers = [
164-
\ 'fzf', 'unite', 'better-defaults',
165-
\ 'which-key',
164+
\ 'fzf', 'better-defaults', 'which-key',
166165
\ ]
167166
168167
" If you want to have more control over the layer, try using Layer command.
@@ -194,7 +193,7 @@ endfunction
194193
function! UserConfig()
195194
196195
" If you have installed the powerline fonts and want to enable airline layer
197-
" let g:airline_powerline_fonts=1
196+
" let g:airline_powerline_fonts = 1
198197
199198
" Use gui colors in terminal if available
200199
function! s:enable_termgui()

init.spacevim

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ let g:spacevim_plug_home = '~/.vim/plugged'
1212

1313
" Enable the existing layers in space-vim
1414
let g:spacevim_layers = [
15-
\ 'fzf', 'unite', 'better-defaults',
16-
\ 'which-key',
15+
\ 'fzf', 'better-defaults', 'which-key',
1716
\ ]
1817

1918
" If you want to have more control over the layer, try using Layer command.

layers/+tools/fzf/config.vim

+8-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ else
3333

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

3837
command! -nargs=* Rag call spacevim#plug#fzf#AgInProject(<q-args>)
3938
command! -bang -nargs=* Rg call spacevim#plug#fzf#Rg(<q-args>, <bang>0)
@@ -55,5 +54,13 @@ else
5554
5655
nnoremap <leader>rg :Rg!<cr>
5756
vnoremap <leader>rg :call spacevim#plug#fzf#RgVisual()<CR>
57+
58+
if !spacevim#load('unite')
59+
nnoremap <LocalLeader>v :call spacevim#plug#fzf#Open()<CR>
60+
nnoremap <LocalLeader>p :call spacevim#plug#fzf#Rtp()<CR>
61+
nnoremap <LocalLeader>fc :call spacevim#plug#fzf#FZFCmd()<CR>
62+
nnoremap <LocalLeader>ff :call spacevim#plug#fzf#Func()<CR>
63+
endif
64+
5865
" }
5966
endif

0 commit comments

Comments
 (0)