Since #119 vim-ledger incorrectly sets makeprg to (hledger -f g:ledger_main::S print > /dev/null) in Neovim.
The root cause is that the expansion works differently between Vim and Neovim. Also, ::S suffix only works if g:ledger_main is a special wildcard. Was that the intention?
For addressing this issue, we could do one of the following:
Roll back #119, because it's a breaking change.
Change to expand(g:ledger_main . '::S') if g:ledger_main being a wildcard is intended. This works in both Vims.
Check for Neovim and do 2. for Neovim only.
Let users configure the expanded filename by themselves.
Ignore, because you don't care about supporting Neovim.
Since #119 vim-ledger incorrectly sets
makeprg
to(hledger -f g:ledger_main::S print > /dev/null)
in Neovim.The root cause is that the expansion works differently between Vim and Neovim. Also,
::S
suffix only works ifg:ledger_main
is a special wildcard. Was that the intention?For addressing this issue, we could do one of the following:
expand(g:ledger_main . '::S')
ifg:ledger_main
being a wildcard is intended. This works in both Vims.