When I'm editing an org file, the plugin crashed with the following error:
Error executing lua callback: ...share/nvim/lazy/nvim-snippets/lua/snippets/utils/cmp.lua:36: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
...share/nvim/lazy/nvim-snippets/lua/snippets/utils/cmp.lua:36: in function 'complete'
...pirey/.local/share/nvim/lazy/nvim-cmp/lua/cmp/source.lua:326: in function 'complete'
...e/pirey/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:299: in function 'complete'
...e/pirey/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:169: in function 'callback'
...e/pirey/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:229: in function 'autoindent'
...e/pirey/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:161: in function 'on_change'
...e/pirey/.local/share/nvim/lazy/nvim-cmp/lua/cmp/init.lua:340: in function 'callback'
...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:49: in function 'emit'
...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:23: in function <...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:22>
I don't have any snippets configured for org files and don't plan to add any, just want to get rid of the error.
After tracing the error, I found that it tries to call pair(loaded_snippet) in this line.
However, loaded_snippetmight be empty, so it crashes.
When I'm editing an
org
file, the plugin crashed with the following error:I don't have any snippets configured for
org
files and don't plan to add any, just want to get rid of the error.After tracing the error, I found that it tries to call
pair(loaded_snippet)
in this line.However,
loaded_snippet
might be empty, so it crashes.