Comments (13)
You need to install additional source for nvim-lsp
from nvim-cmp.
Instead of the server name, you should use the source name
sources = {
{ name = 'buffer' },
{ name = 'nvim_lsp' },
},
from nvim-cmp.
You need to install additional source for nvim-lsp
I think my question is how to attach the source to nvim-cmp
because I have nvim-lsp
installed. I tried listing nvim-lsp
under sources but no dice. Tried rust-analyzer second, nothing also.
If you get a gap, please have a look and let me know how I should modify the config. I attached my pastebin link.
from nvim-cmp.
Awesome. I'm getting completions now, auto imports aren't working though.
Is there something else I need to check?
from nvim-cmp.
Did you set up the cmp-nvim-lsp's README.md?
https://github.com/hrsh7th/cmp-nvim-lsp
from nvim-cmp.
Did you set up the cmp-nvim-lsp's README.md?
https://github.com/hrsh7th/cmp-nvim-lsp
Yeah, I did.
Line 61 here
Is that it?
from nvim-cmp.
auto-import is works in my environment. I can't repro
from nvim-cmp.
Ah. Your config has no mapping option.
from nvim-cmp.
Was about to ask for your mapping lol. Could you share please?
from nvim-cmp.
Please read README.md https://github.com/hrsh7th/nvim-cmp#readme
from nvim-cmp.
Yeah I had that before but I got some errors,
Error executing lua [string ":lua"]:30: attempt to call field 'prev_item' (a nil value)
So I moved it out and tried to use inoremap
, which wouldn't work
from nvim-cmp.
Please update plugin and set mapping oprion.
from nvim-cmp.
Ahh all good now. Thanks buddy
from nvim-cmp.
Related Issues (20)
- cmp.select_next_item() gets error "attempt to perform arithmetic on local 'cursor' HOT 5
- When attempting to navigate suggestion list getting E5108 Error executing lua: .../custom_entries_view.lua:328: attempt to perform arithmetic on local 'cursor' (a nil value) HOT 3
- GLFW_PROFILE doesn't match GLFW_OPENGL_PROFILE but it does when we write GLFW_OP first HOT 1
- Update "Advanced techniques" in the Wiki HOT 1
- Improperly sized windows HOT 1
- Diagnostics window always opens from behind HOT 3
- Feature Request: complete on close HOT 3
- [Question] How would I fetch the current word that nvim cmp is completing against externally?
- preselection not working in command mode HOT 3
- Key mapping to select first snippet completion
- Disable this plugin for floating windows HOT 4
- Snippets and LSP suggestion are both inserted
- double quotes(quotes, etc) ignored by ghost text HOT 1
- Don't rely on `after/plugin` for registering sources HOT 1
- Strange bug with Svelte 5 emmet expansion - VS Code works fine
- Option to show the completion window above the cursor HOT 2
- Error "Vim:E976: Using a Blob as a String" when trying to type "snippet" word with nvim-cmp and LuaSnip HOT 1
- performance.debounce breaks cmdline completion HOT 1
- 1-5s Delay when snippets enabled for certain LSP HOT 2
- Suggetions disapearing when selecting next item. HOT 1
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 nvim-cmp.