Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
haininhhoang94 committed Mar 3, 2021
1 parent 3d7335d commit e9708be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
17 changes: 11 additions & 6 deletions general/functions.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@ nnoremap <f10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '>
" endfunction

" Change color scheme to light (Papercolor)
function! Light()
:colorscheme PaperColor
:set background=light
endfunction
" function! Light()
" :colorscheme PaperColor
" :set background=light
" endfunction

function! Sync()
" :!echo "Hello world"
function! SyncNeovimConfig()
:!cd ~/.config/nvim && git add . && git commit -m "updates" && git push
:echomsg "Status: Sync Neovim Successful"
endfunction

function! SyncDotfilesConfig()
:!cd ~ && dotfiles add -u && dotfiles commit -m "updates" && dotfiles push
:echomsg "Status: Sync Dotfiles Successful"
endfunction

" WSL yank support
Expand Down
3 changes: 2 additions & 1 deletion keys/which-key.vim
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ let g:which_key_map['T'] = [ ':TSHighlightCapturesUnderCursor' , 'treesitter
let g:which_key_map['u'] = [ ':UndotreeToggle' , 'undo tree']
let g:which_key_map['v'] = [ '<C-W>v' , 'split right']
let g:which_key_map['W'] = [ ':call WindowSwap#EasyWindowSwap()' , 'move window' ]
let g:which_key_map['y'] = [ ':call Sync()' , 'Sync...' ]
let g:which_key_map['y'] = [ ':call SyncNeovimConfig()' , 'Sync...' ]
let g:which_key_map['Y'] = [ ':call SyncDotfilesConfig()' , 'Sync...' ]
let g:which_key_map['z'] = [ 'Goyo' , 'zen' ]

" Group mappings
Expand Down

0 comments on commit e9708be

Please sign in to comment.