Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyangze committed Mar 14, 2024
1 parent 97e23a6 commit 83f866a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
10 changes: 5 additions & 5 deletions layers/common/theme-vim-startify.vim
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ let g:startify_skiplist = [
\ '.*/\.git/*'
\ ]

let g:startify_bookmarks = systemlist("cut -sd' ' -f 2- ~/.NERDTreeBookmarks")
"let g:startify_bookmarks = systemlist("cut -sd' ' -f 2- ~/.NERDTreeBookmarks")

let g:startify_files_number = 8
let g:NERDTreeHijackNetrw = 0
let g:startify_session_autoload = 1
let g:startify_session_dir = '~/.vim/session'
let g:startify_session_autoload = 0
"let g:startify_session_dir = '~/.vim/session'

function! s:gitModified()
let files = systemlist('git ls-files -m 2>/dev/null')
Expand All @@ -38,7 +38,7 @@ let g:startify_lists = [
\ { 'type': function('s:gitRecent'), 'header': [' Git Recent'] },
\ { 'type': 'dir', 'header': [' 📂 Dirs'] },
\ { 'type': 'files', 'header': [' 📔 Files'] },
\ { 'type': 'sessions', 'header': [' 📦 Sessions'] },
\ { 'type': 'bookmarks', 'header': [' 🔖 Bookmarks'] },
"\ { 'type': 'sessions', 'header': [' 📦 Sessions'] },
"\ { 'type': 'bookmarks', 'header': [' 🔖 Bookmarks'] },
\ { 'type': 'commands', 'header': [' Commands'] },
\ ]
2 changes: 1 addition & 1 deletion layers/common/tool-functions.vim
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function! FernFindCurrentFile()
if &filetype == "nerdtree"
return
endif
silent! execute "Rooter"
"silent! execute "Rooter"
let l:filename = trim(expand('%'), './')
if exists(":NERDTreeFind")
if l:filename == 'Startify' || l:filename == ''
Expand Down
2 changes: 2 additions & 0 deletions layers/user/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ endfunction
let g:context_enabled = 0

let g:rooter_patterns = ['artisan', 'think', 'composer.lock', 'go.mod', 'pom.xml', 'package.json', '.git']
let g:rooter_change_directory_for_non_project_files = ''
let g:coc_disable_startup_warning = 1
let g:rooter_manual_only = 1
2 changes: 1 addition & 1 deletion layers/user/php.vim
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function! PhpUnitSwitchFile()
let f = expand('%')
let cmd = ''
let is_test = expand('%:t') =~ "Test\."
exec 'Rooter'
"exec 'Rooter'
let rpwd = getcwd()
if is_test
" remove phpunit_testroot
Expand Down
2 changes: 1 addition & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if empty(glob("~/.vim/autoload/plug.vim"))
endif

" plugin
syn sync fromstart
"syn sync fromstart
set nocompatible
filetype off
let s:plug_files = [
Expand Down

0 comments on commit 83f866a

Please sign in to comment.