Skip to content

Commit b82ce26

Browse files
committed
fix: #43 $MYQVIMRC not being set correctly when $MYVIMRC is init.lua and not init.vim
1 parent 7cdb149 commit b82ce26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/QNVim.json.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
\"Name\" : \"QNVim\",
3-
\"Version\" : \"10.0.0\",
3+
\"Version\" : \"10.0.0_1\",
44
\"Vendor\" : \"Sassan Haradji\",
55
\"Copyright\" : \"(C) Sassan Haradji\",
66
\"License\" : \"MIT\",

src/qnvimcore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function! SetCursor(line, col)\n\
117117
endif\n\
118118
call cursor(a:line, a:col)\n\
119119
endfunction\n\
120-
autocmd VimEnter * let $MYQVIMRC=substitute($MYVIMRC, 'init.vim$', 'qnvim.vim', v:true) | source $MYQVIMRC")
120+
autocmd VimEnter * let $MYQVIMRC=substitute(substitute($MYVIMRC, 'init.vim$', 'qnvim.vim', 'g'), 'init.lua$', 'qnvim.vim', 'g') | source $MYQVIMRC")
121121
.arg(mNVim->channel()).toUtf8());
122122
connect(mNVim->api2(), &NeovimQt::NeovimApi2::neovimNotification,
123123
this, &QNVimCore::handleNotification);

0 commit comments

Comments
 (0)