From 497e3443f564281cd51efe8983883d057f07c30d Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 17 Mar 2017 23:27:49 +0800 Subject: [PATCH] Fix leaderf config --- autoload/SpaceVim/layers/tools.vim | 3 +- autoload/leaderf/colorscheme/spacevim.vim | 102 ++++++++++++++++++++++ config/plugins/LeaderF.vim | 2 + 3 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 autoload/leaderf/colorscheme/spacevim.vim create mode 100644 config/plugins/LeaderF.vim diff --git a/autoload/SpaceVim/layers/tools.vim b/autoload/SpaceVim/layers/tools.vim index 4385aa574..358dee7a5 100644 --- a/autoload/SpaceVim/layers/tools.vim +++ b/autoload/SpaceVim/layers/tools.vim @@ -6,7 +6,8 @@ function! SpaceVim#layers#tools#plugins() abort \ ['junegunn/goyo.vim', { 'on_cmd' : 'Goyo', \ 'loadconf' : 1}], \ ['junegunn/limelight.vim', { 'on_cmd' : 'Limelight'}], - \ ['Yggdroot/LeaderF', { 'on_cmd' : 'LeaderF', + \ ['Yggdroot/LeaderF', { 'on_cmd' : 'LeaderfFile', + \ 'loadconf' : 1, \ 'merged' : 0}], \ ['MattesGroeger/vim-bookmarks', { 'on_map' : 'Bookmark', \ 'loadconf_before' : 1}], diff --git a/autoload/leaderf/colorscheme/spacevim.vim b/autoload/leaderf/colorscheme/spacevim.vim new file mode 100644 index 000000000..f40227436 --- /dev/null +++ b/autoload/leaderf/colorscheme/spacevim.vim @@ -0,0 +1,102 @@ +" ============================================================================ +" File: spacevim.vim +" Description: colorscheme for leaderf +" Author: Shidong Wang +" Website: https://github.com/wsdjeg +" License: MIT +" ============================================================================ + +let s:palette = { + \ 'stlName': { + \ 'gui': 'bold', + \ 'font': 'NONE', + \ 'guifg': '#005F00', + \ 'guibg': '#AFDF00', + \ 'cterm': 'bold', + \ 'ctermfg': '22', + \ 'ctermbg': '148' + \ }, + \ 'stlCategory': { + \ 'gui': 'NONE', + \ 'font': 'NONE', + \ 'guifg': '#870000', + \ 'guibg': '#FF8700', + \ 'cterm': 'NONE', + \ 'ctermfg': '88', + \ 'ctermbg': '208' + \ }, + \ 'stlNameOnlyMode': { + \ 'gui': 'NONE', + \ 'font': 'NONE', + \ 'guifg': '#005D5D', + \ 'guibg': '#FFFFFF', + \ 'cterm': 'NONE', + \ 'ctermfg': '23', + \ 'ctermbg': '231' + \ }, + \ 'stlFullPathMode': { + \ 'gui': 'NONE', + \ 'font': 'NONE', + \ 'guifg': '#FFFFFF', + \ 'guibg': '#FF2929', + \ 'cterm': 'NONE', + \ 'ctermfg': '231', + \ 'ctermbg': '196' + \ }, + \ 'stlFuzzyMode': { + \ 'gui': 'NONE', + \ 'font': 'NONE', + \ 'guifg': '#004747', + \ 'guibg': '#FFFFFF', + \ 'cterm': 'NONE', + \ 'ctermfg': '23', + \ 'ctermbg': '231' + \ }, + \ 'stlRegexMode': { + \ 'gui': 'NONE', + \ 'font': 'NONE', + \ 'guifg': '#000000', + \ 'guibg': '#7FECAD', + \ 'cterm': 'NONE', + \ 'ctermfg': '16', + \ 'ctermbg': '121' + \ }, + \ 'stlCwd': { + \ 'gui': 'NONE', + \ 'font': 'NONE', + \ 'guifg': '#FFFFFF', + \ 'guibg': '#585858', + \ 'cterm': 'NONE', + \ 'ctermfg': '231', + \ 'ctermbg': '240' + \ }, + \ 'stlBlank': { + \ 'gui': 'NONE', + \ 'font': 'NONE', + \ 'guifg': 'NONE', + \ 'guibg': '#303136', + \ 'cterm': 'NONE', + \ 'ctermfg': 'NONE', + \ 'ctermbg': '236' + \ }, + \ 'stlLineInfo': { + \ 'gui': 'NONE', + \ 'font': 'NONE', + \ 'guifg': '#C9C9C9', + \ 'guibg': '#585858', + \ 'cterm': 'NONE', + \ 'ctermfg': '251', + \ 'ctermbg': '240' + \ }, + \ 'stlTotal': { + \ 'gui': 'NONE', + \ 'font': 'NONE', + \ 'guifg': '#545454', + \ 'guibg': '#D0D0D0', + \ 'cterm': 'NONE', + \ 'ctermfg': '240', + \ 'ctermbg': '252' + \ } + \ } + +let g:leaderf#colorscheme#spacevim#palette = leaderf#colorscheme#mergePalette(s:palette) diff --git a/config/plugins/LeaderF.vim b/config/plugins/LeaderF.vim new file mode 100644 index 000000000..37570fe3c --- /dev/null +++ b/config/plugins/LeaderF.vim @@ -0,0 +1,2 @@ +let g:Lf_StlSeparator = { 'left': '', 'right': '' } +let g:Lf_StlColorscheme = 'spacevim'