:Telescope luasnip disable_ft=true
Error executing Lua callback: vim/shared.lua:305: after the second argument: expected table, got nil
stack traceback:
[C]: in function 'error'
vim/shared.lua:764: in function 'validate'
vim/shared.lua:305: in function 'tbl_extend'
...scope-luasnip.nvim/lua/telescope/_extensions/luasnip.lua:74: in function <...scope-luasnip.nvim/lua/telescope/_extensions/luasnip.lua:73>
.../nvim-data/lazy/telescope.nvim/lua/telescope/command.lua:193: in function 'run_command'
.../nvim-data/lazy/telescope.nvim/lua/telescope/command.lua:259: in function 'load_command'
...Local/nvim-data/lazy/telescope.nvim/plugin/telescope.lua:108: in function <...Local/nvim-data/lazy/telescope.nvim/plugin/telescope.lua:107>
This issue does not occur if I swap the event= { "VeryLazy" } lines so that orgmode loads first. That said, it appears that telescope-luasnipalso is doing an unconditional set of the global M (link, and it seems like that would break orgmode?
I am very new to nvim plugins and lua in general so I can't speak to whether this is an unexpected pattern or not. Should we be using a more distinct global name? Should we be doing M = M or {} instead? I did confirm that M = M or {} appears to address this.
Steps to reproduce
With the minimal config below:
Open nvim
Run :Telescope luasnip disable_ft=true
See the error
Expected behavior
orgmode should not wipe out global state set from other extensions.
Describe the bug
orgmode
appears to be unconditionally settingM
in lua/orgmode/utils/fs.lua:This results in
benfowler/telescope-luasnip.nvim
not working if orgmode is loaded after it:This issue does not occur if I swap the
event= { "VeryLazy" }
lines so that orgmode loads first. That said, it appears thattelescope-luasnip
also is doing an unconditional set of the globalM
(link, and it seems like that would break orgmode?I am very new to nvim plugins and lua in general so I can't speak to whether this is an unexpected pattern or not. Should we be using a more distinct global name? Should we be doing
M = M or {}
instead? I did confirm thatM = M or {}
appears to address this.Steps to reproduce
With the minimal config below:
:Telescope luasnip disable_ft=true
Expected behavior
orgmode
should not wipe out global state set from other extensions.Emacs functionality
No response
Minimal init.lua
Screenshots and recordings
No response
OS / Distro
Windows 10
Neovim version/commit
0.9.2
Additional context
No response