ITADN

bug: care doesnt allow to use backspace to remove character on caps lock or shift

#150Closedmj59487 创建于 2024-12-09
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-1325+g30726c778c ### care.nvim setup ```Lua require('care').setup { -- Snippets snippet_expansion = function(snippet_body) require('luasnip').lsp_expand(snippet_body) end, sources = { cmp_luasnip = { enabled = true, }, -- lsp = { -- max_entries = 20, -- }, }, preselect = false, -- UI ui = { type_icons = type_icons, ghost_text = { position = 'inline', }, -- Menu config menu = { -- border = '', -- border = { '▄', '▄', '▄', '█', '▀', '▀', '▀', '█' }, border = { '┌', '─', '┐', '│', '┘', '─', '└', '│' }, scrollbar = { enabled = false, }, max_height = 100, format_entry = function(entry, data) local preset_components = require('care.presets.components') return { preset_components.KindIcon(entry, 'fg'), preset_components.Padding(1), preset_components.Label(entry, data, false), preset_components.ColoredBlock(entry, ' '), { { require('care.presets.utils').get_label_detail(entry), 'Comment', }, }, preset_components.Padding(1), } end, alignments = { 'left', 'left', 'left', 'left', 'right', 'right' }, }, -- Documentation config docs_view = { max_height = 20, -- border = '', -- border = { '▄', '▄', '▄', '█', '▀', '▀', '▀', '█' }, border = { '┌', '─', '┐', '│', '┘', '─', '└', '│' }, scrollbar = { character = '║', }, }, }, } ``` ### Actual behavior care.nvim simply doesnt allow to use backspace to remove characters on insert mode on using Caps lock or combining shift with backspace ### Expected behavior care should allow to remove characters with caps lock or shift combined with backspace ### Healthcheck ```markdown ============================================================================== care: require("care.health").check() care.nvim ~ - Checking configuration... - Format entry function: - Format entry function returns correct value - Alignments: - All alignments are correct - - Checking dependencies... - Dependency 'fzy' found ``` ### Steps to reproduce can be easily produced with the configuration provided above ### Log _No response_ ### Other information _No response_ ### Minimal config ```Lua vim.env.LAZY_STDPATH = ".repro" load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))() require("lazy.minit").repro({ spec = { { "max397574/care.nvim", -- dependencies = { -- -- sources -- -- if you have issues with luarocks -- "romgrk/fzy-lua-native" -- }, config = function() -- keymappings, `require"care.config".setup(...)` end }, }, -- if you have issues with luarocks -- pkg = { sources = { nil } }, }) ```
关闭于 2024-12-09 1 条评论