ITADN

Configuration breaks when disabling diagnostics

#141Closediagoleal 创建于 2024-09-07
I
iagolealcommented
Hello! I've updated hotpot to the main branch after some weeks without updating and it appears to no longer work with disabled diagnostics. Here is a minimal `init.lua` with the problem ``` # init.lua require("hotpot").setup({ enable_hotpot_diagnostics = false, # <-- Everything is well when it is set to true }) ``` Which produces the following error whenever I open neovim. ``` Error detected while processing /home/iago/.config/nvim/init.lua: E5113: Error while calling lua chunk: .../packer/start/hotpot.nvim/lua/hotpot/api/diagnostics.lua:236: attempt to index local '_36_' (a number value) stack traceback: .../packer/start/hotpot.nvim/lua/hotpot/api/diagnostics.lua:236: in function 'setup' /home/iago/.config/nvim/init.lua:2: in main chunk Press ENTER or type command to continue ```
关闭于 2024-09-08 1 条评论