Comments (10)
can't reproduce with this minimum config.
vim.cmd [[packadd packer.nvim]]
require('packer').startup(function()
use 'wbthomason/packer.nvim'
use {
'L3MON4D3/LuaSnip',
requires = {
'rafamadriz/friendly-snippets'
}
}
use {
'hrsh7th/nvim-cmp',
requires = {
'hrsh7th/cmp-nvim-lsp',
'saadparwaiz1/cmp_luasnip'
}
}
use {
'neovim/nvim-lspconfig'
}
end)
require('luasnip').config.setup({})
require('luasnip.loaders.from_vscode').load()
local cmp = require('cmp')
cmp.setup {
snippet = {
expand = function(args)
require'luasnip'.lsp_expand(args.body)
end
},
sources = {
{ name = 'luasnip' },
{ name = 'nvim_lsp'},
},
mapping = {
['<C-d>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.close(),
['<CR>'] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Replace,
select = true,
})
}
}
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
require'lspconfig'.clangd.setup {
capabilities = capabilities,
}
from cmp_luasnip.
Now that I know which plugin is causing the problem, I close this issue.
I thought it would reproduce even with that setting, but there was one that I had manually added locally hahaha
from cmp_luasnip.
Now that I know which plugin is causing the problem, I close this issue. I thought it would reproduce even with that setting, but there was one that I had manually added locally hahaha
@uga-rosa I am currently having the same issue, can you tell me what plugin was causing this issue?
from cmp_luasnip.
@ram02z That's a plugin I made myself.
The problem with this plugin should have been solved by PR the other day, but... I wonder why.
from cmp_luasnip.
@ram02z can you reproduce the issue with the above minimum config?
from cmp_luasnip.
@ram02z can you reproduce the issue with the above minimum config?
Not sure how to run that config. I also use packer and it seems to conflict when I run with nvim -u min.lua
or nvim -u min.lua --no-plugin
from cmp_luasnip.
Try with --clean
and -u
.
from cmp_luasnip.
Try with
--clean
and-u
.
Doesn't work unfortunately.
from cmp_luasnip.
Isn't there a plugin left under ~/.local/share/nvim/site/pack/packer/?
You can use package_root in packer.init.
It's quicker to move it once.
from cmp_luasnip.
I managed to fix it by not lazy loading nvim-cmp.
from cmp_luasnip.
Related Issues (20)
- Snippets are not reloaded after adding a new snippet HOT 8
- Probably README should be updated. HOT 1
- Snippet Completion Options disappear HOT 3
- No longer directly access `ls.snippets` HOT 3
- Keep getting sporadic errors (may be related to packer.nvim?) HOT 7
- attempt to index local 'snip' (a nil value) HOT 7
- Help wanted: Treesitter highlight lost after enabling cmp_luasnip HOT 4
- Plugin license HOT 5
- getting this error when autocompleting HOT 6
- Choice Node Integration HOT 8
- Create tag when version requirement changes HOT 1
- Postfix snippets not shown or shown too late HOT 12
- Is there any ways to remove `~` in snippet completion window? HOT 3
- Sources appear in `LuaSnipListAvailable` but not in cmp suggestions list HOT 10
- Filter snippets by condition HOT 3
- Neovim freezing when pressing Tab HOT 3
- Neovim freezing
- Can't install plugin HOT 2
- module 'cmp' not found HOT 4
- Jump to placeholders in snippet HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmp_luasnip.