ITADN

bug: alignments in menu not working

#147Closedmj59487 创建于 2024-12-08
M
mj59487commented
### Prerequisites - [X] I am using the latest stable or nightly neovim version - [X] I am using the latest version of the plugin ### Neovim Version NVIM v0.11.0-dev-1321+gfe1e2eff06 ### Actual behavior im trying to use this snippet within menu, ```lua format_entry = function(entry, data) local preset_components = require('care.presets.components') return { { preset_components.KindIcon, }, { preset_components.Label, }, } end, alignments = { 'left', 'right' }, end ``` but for some reason, im getting this error: Error executing vim.schedule lua callback: ...ocal/share/nvim/lazy/care.nvim/lua/care/utils/format.lua:29: attempt to index local 'chunk' (a function value) stack traceback: ...ocal/share/nvim/lazy/care.nvim/lua/care/utils/format.lua:29: in function 'get_width' .../.local/share/nvim/lazy/care.nvim/lua/care/menu/init.lua:251: in function 'open' ...areef/.local/share/nvim/lazy/care.nvim/lua/care/core.lua:85: in function <...areef/.local/share/nvim/lazy/care.nvim/lua/care/core.lua:59> Press ENTER or type command to continue ### Expected behavior alignment should work ### Healthcheck ```markdown ============================================================================== care: require("care.health").check() care.nvim ~ - Checking configuration... - Format entry function: - ERROR Format entry chunk 1 in chunks 1 isn't a table - ERROR Format entry chunk 1 in chunks 2 isn't a table - Alignments: - All alignments are correct - - Checking dependencies... - Dependency 'fzy' found ``` ### Other information _No response_
关闭于 2024-12-08 4 条评论