You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.9.2
Operating system/version
macOS 14.0
Describe the bug
vim-ledger started throwing startup errors due to undefined variables upon opening a ledger file.
The error is:
Error detected while processing BufReadPost Autocommands for "*.ledger"..FileType Autocommands for "*"..Syntax Autocommands
for "*"..function <SNR>24_SynSet[25]..script /root/.repro/plugins/vim-ledger/syntax/ledger.vim:
line 15:
E121: Undefined variable: g:ledger_is_hledger
line 22:
E121: Undefined variable: b:is_hledger
line 70:
E121: Undefined variable: s:line_comment_chars
line 74:
E121: Undefined variable: b:is_hledger
line 88:
E121: Undefined variable: b:is_hledger
line 147:
E121: Undefined variable: b:is_hledger
The error has started appearing since a recent commit, ef2a5d0. @JulesNP also reports there an initialization error, which suggest that something happened to lazy-loading logic.
Steps To Reproduce
touch ledger.ledger
nvim ledger.ledger
Expected Behavior
No error is thrown at start up.
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{ "ledger/vim-ledger", ft="ledger" },
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.9.2
Operating system/version
macOS 14.0
Describe the bug
vim-ledger started throwing startup errors due to undefined variables upon opening a ledger file.
The error is:
The error has started appearing since a recent commit, ef2a5d0. @JulesNP also reports there an initialization error, which suggest that something happened to lazy-loading logic.
Steps To Reproduce
touch ledger.ledger
nvim ledger.ledger
Expected Behavior
No error is thrown at start up.
Repro
The text was updated successfully, but these errors were encountered: