-
Notifications
You must be signed in to change notification settings - Fork 322
Open
Labels
Description
Make sure you have done the following
- Updated to the latest version of
blink.cmp - Searched for existing issues and documentation (try
<C-k>on https://cmp.saghen.dev)
Bug Description
Problem
This happens because we attach keymaps to the buffer on InsertEnter only:
Repro
Current Behavior
nvim -u repro.lua repro.luagg<space><Tab>- doesn't move to the next placeholder
Desired Behavior
nvim -u repro.lua repro.luagg<space><Tab>- moves to the next placeholder
Relevant configuration
local function test_func(param1, param2)
return false
end
-- Run with `nvim -u repro.lua`
--
-- Please update the code below to reproduce your issue and send the updated code, with reproduction
-- steps, in your issue report
--
-- If you get warnings about prebuilt binaries, you may use `fuzzy.implementation = 'lua'`
-- but note this has caveats: https://cmp.saghen.dev/configuration/fuzzy#rust-vs-lua-implementation
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
vim.bo.tabstop = 2
---@diagnostic disable-next-line: missing-fields
require("lazy.minit").repro({
spec = {
{
"danymat/neogen",
dependencies = { "nvim-treesitter/nvim-treesitter", "L3MON4D3/LuaSnip" },
-- stylua: ignore start
keys = { { "<space>", function() require("neogen").generate() end, desc = "Generate Docs" } },
-- stylua: ignore end
opts = { snippet_engine = "luasnip" },
},
{
"saghen/blink.cmp",
---@module "blink-cmp"
---@type blink.cmp.Config
opts = {
keymap = { preset = "default" },
snippets = { preset = "luasnip" },
},
},
},
})neovim version
NVIM v0.11.4 Build type: Release LuaJIT 2.1.1741730670 Run "nvim -V1 -v" for more info
blink.cmp version
main & stable