We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's repro.lua , nvim -u ~/repro.lua
nvim -u ~/repro.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 = { { "hrsh7th/nvim-cmp", dependencies = { "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-buffer", "hrsh7th/cmp-path", }, opts = function(_, opts) local cmp = require("cmp") opts.mapping = cmp.mapping.preset.insert({ ["<C-Space>"] = cmp.mapping.complete(), }) opts.sources = cmp.config.sources({ { name = "nvim_lsp" }, { name = "path" }, }, { { name = "buffer" }, }) end, }, }, })
Ctrl N doesn't work with new buffers, seems like cmp.mapping.complete(), is the cause?
cmp.mapping.complete(),
Make a new File, then type anything, eg, apple
type :sp foo.txt
Type ap
Press Ctrl-N
It should pick up apple on the other buffer as source of completion
Nothing Happens
If you comment this line, it works:
-- opts.mapping = cmp.mapping.preset.insert({ -- ["<C-Space>"] = cmp.mapping.complete(), -- })
Reference issue filed in LazyVim: LazyVim/LazyVim#4414
The text was updated successfully, but these errors were encountered:
I believe this is neither a LazyVim bug nor a nvim-cmp bug. Please see comment here and kindly correct me if I'm somewhere mistaken.
nvim-cmp
Sorry, something went wrong.
No branches or pull requests
FAQ
Announcement
Minimal reproducible full config
Here's repro.lua ,
nvim -u ~/repro.lua
Description
Ctrl N doesn't work with new buffers, seems like
cmp.mapping.complete(),
is the cause?Steps to reproduce
Expected behavior
It should pick up apple on the other buffer as source of completion
Actual behavior
Nothing Happens
Additional context
If you comment this line, it works:
Reference issue filed in LazyVim:
LazyVim/LazyVim#4414
The text was updated successfully, but these errors were encountered: