Skip to content

Commit

Permalink
vim: Fix <leader>src to respect the new init.lua (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
wookayin committed Oct 29, 2022
1 parent 578c07d commit a239f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,9 @@ nnoremap <leader>src <cmd>call _source_rc()<CR>
if v:vim_did_enter == 0 " Do not redefine the function
function! _source_rc() abort
if has('nvim')
source ~/.config/nvim/init.vim
source ~/.config/nvim/init.lua
doautocmd VimEnter
echo 'Sourced ~/.config/nvim/init.vim'
echo 'Sourced ~/.config/nvim/init.lua'
else
source ~/.vimrc
doautocmd VimEnter
Expand Down

0 comments on commit a239f32

Please sign in to comment.