Comments (14)
@pqn thank you for the additional context!
If I have time, I'll try take a stab at this feature and I'll see if I can figure it out.
This is a proprietary software and it is their responsibility to polish the software delivered to their user.
from codeium.nvim.
#132 should solve this.
from codeium.nvim.
This will require implementing calling the AcceptCompletion
RPC in the extension. This is where it's called in other extensions for example:
- https://github.com/Exafunction/codeium.vim/blob/c18f6642f2bd071ab0154e5d333697067f9c4b70/autoload/codeium.vim#L83
- https://github.com/Exafunction/CodeiumVisualStudio/blob/1b846dc79b12256330879f1b2613178be06197fd/CodeiumVS/Proposal/CodeiumProposalSourceProvider.cs#L80
from codeium.nvim.
I can confirm with this. In the personal homepage, I see that the number of accepted completions from Neovim will not increase.
from codeium.nvim.
@pqn thank you for the additional context!
If I have time, I'll try take a stab at this feature and I'll see if I can figure it out.
from codeium.nvim.
This will require implementing calling the
AcceptCompletion
RPC in the extension. This is where it's called in other extensions for example:
cmp has a hook cmp.event:on("confirmation_done") which can be used to send the AcceptCompletion request.
from codeium.nvim.
This is a proprietary software and it is their responsibility to polish the software delivered to their user.
We at Codeium were not the original authors of this plugin. We simply took it over when the original maintainer and author archived it.
from codeium.nvim.
This is a proprietary software and it is their responsibility to polish the software delivered to their user.
We at Codeium were not the original authors of this plugin. We simply took it over when the original maintainer and author archived it.
Additionally, per the LICENSE and the Contributing section of the README, Issues & PRs are accepted.
from codeium.nvim.
@milanglacier when you tested your changes, were you able to validate that your profile updated correctly each time you accepted a completion item?
from codeium.nvim.
@milanglacier when you tested your changes, were you able to validate that your profile updated correctly each time you accepted a completion item?
Of course They did update.
from codeium.nvim.
Awesome.
Maybe it was an anomaly or some discrepancy in my config at the time, but when I tested your changes my profile still only received intermittent updates on completion acceptance.
Glad to hear it works though; thanks for creating the fix & PR!
from codeium.nvim.
Awesome.
Maybe it was an anomaly or some discrepancy in my config at the time, but when I tested your changes my profile still only received intermittent updates on completion acceptance.
Glad to hear it works though; thanks for creating the fix & PR!
I use the tab
key which is mapped to cmp.mapping.confirm { select = true },
. I believe cmp.confirm
function must be called so that the hook will be triggered and the AcceptCompletion
request will send.
from codeium.nvim.
Awesome.
Maybe it was an anomaly or some discrepancy in my config at the time, but when I tested your changes my profile still only received intermittent updates on completion acceptance.
Glad to hear it works though; thanks for creating the fix & PR!I use the
tab
key which is mapped tocmp.mapping.confirm { select = true },
. I believecmp.confirm
function must be called so that the hook will be triggered and theAcceptCompletion
request will send.
The issue was definitely my nvim-cmp
config.
The keymap I use to accept/confirm completions was configured to cmp.mapping.confirm { select = false }
. I think I recall doing this due to confirmed completions overwriting existing text if the completion was accepted in the middle of a line of text.
Changing my config to use cmp.mapping.confirm { select = true }
when accepting a completion fixed the issue for me and my profile appears to be updating correctly for every completion accepted.
Thanks again for your help with the fix @milanglacier!
from codeium.nvim.
fixed in #132
from codeium.nvim.
Related Issues (20)
- Hash does not match the expected Codeium server stamp (NixOS) HOT 2
- attempt to index field 'api' (a nil value) HOT 4
- Error executing luv callback plenary/curl.lua (Termux) HOT 2
- nvim: Codeium not auto completing HOT 4
- Codeium Auth Error
- Readme missing keybind config HOT 2
- enhancement: accept word / line of suggestion HOT 1
- bad argument #2 to 'gsub'
- codeium.log.log: No such file or directory HOT 2
- Failed to download server
- Codeium config and curl
- codeium server crashed: Maybe lsp error? HOT 3
- Codeium chat HOT 1
- Codeium Chat: xdg-open command not found (macOS) HOT 2
- Chat, telemetry problem. HOT 1
- How to activate the chat?
- Error executing luv callback(termux)
- WARN heartbeat failed: status:502 HOT 3
- Can't authenticate, ssl timeout
- how to set statusline view like codeium.vim
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 codeium.nvim.