Skip to content

Commit

Permalink
fix: #43 $MYQVIMRC not being set correctly when $MYVIMRC is init.lua …
Browse files Browse the repository at this point in the history
…and not init.vim
  • Loading branch information
sassanh committed Apr 20, 2023
1 parent 7cdb149 commit 1270f38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion external/qtcreator/version.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: None
# SPDX-License-Identifier: MIT

set(QT_CREATOR_VERSION "10.0.0")
set(QT_CREATOR_VERSION "10.0.0_1")
set(QT_CREATOR_SNAPSHOT "")
2 changes: 1 addition & 1 deletion src/QNVim.json.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
\"Name\" : \"QNVim\",
\"Version\" : \"10.0.0\",
\"Version\" : \"10.0.0_1\",
\"Vendor\" : \"Sassan Haradji\",
\"Copyright\" : \"(C) Sassan Haradji\",
\"License\" : \"MIT\",
Expand Down
2 changes: 1 addition & 1 deletion src/qnvimcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function! SetCursor(line, col)\n\
endif\n\
call cursor(a:line, a:col)\n\
endfunction\n\
autocmd VimEnter * let $MYQVIMRC=substitute($MYVIMRC, 'init.vim$', 'qnvim.vim', v:true) | source $MYQVIMRC")
autocmd VimEnter * let $MYQVIMRC=substitute(substitute($MYVIMRC, 'init.vim$', 'qnvim.vim', 'g'), 'init.lua$', 'qnvim.vim', 'g') | source $MYQVIMRC")
.arg(mNVim->channel()).toUtf8());
connect(mNVim->api2(), &NeovimQt::NeovimApi2::neovimNotification,
this, &QNVimCore::handleNotification);
Expand Down

0 comments on commit 1270f38

Please sign in to comment.