Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
starifly committed Feb 9, 2024
1 parent cf3d729 commit a2f1d49
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mp/appearance/lightline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ if isdirectory(expand(FlyVimBundleDir("lightline.vim")))

function! LightlineFugitive()
try
if expand('%:t') !~? 'Tagbar\|Gundo\|NERD' && &ft !~? 'vimfiler' && exists('*fugitive#head')
if expand('%:t') !~? 'Tagbar\|Gundo\|NERD' && &ft !~? 'vimfiler' && exists('*FugitiveHead')
let mark = '' " edit here for cool mark
let branch = fugitive#head()
let branch = FugitiveHead()
return branch !=# '' ? mark.branch : ''
endif
catch
Expand Down
2 changes: 1 addition & 1 deletion mp/basic/basic.bundles
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Plug 'tpope/vim-fugitive' ", { 'on': [] }

" 显示文件类型图标
" NOTE: xshell下缩进有问题
" Plug 'ryanoasis/vim-devicons'
Plug 'ryanoasis/vim-devicons'
4 changes: 4 additions & 0 deletions mp/enhanced/enhanced.bundles
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@ call timer_start(800, 'FlyVim#defer#whitespace')
" Plug 'tmhedberg/SimpylFold', { 'for': 'python' }

" Plug 'sarrow104/simple-cmake.vim'

" 浮动终端
" Plug 'voldikss/vim-floaterm', { 'on': 'FloatermToggle' }
Plug 'voldikss/vim-floaterm'
5 changes: 5 additions & 0 deletions mp/enhanced/floaterm.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if isdirectory(expand(FlyVimBundleDir("vim-floaterm")))
nnoremap <silent> <F3> :FloatermToggle<CR>
tnoremap <silent> <F3> <C-\><C-n>:FloatermToggle<CR>
endif

0 comments on commit a2f1d49

Please sign in to comment.