Code Monkey home page Code Monkey logo

Comments (3)

devcharmander avatar devcharmander commented on July 21, 2024

Closing this issue as this seems like a duplicate of this
#20

Will reopen otherwise :)

from codeium.el.

devcharmander avatar devcharmander commented on July 21, 2024

It worked!

Writing it here if someone stumbles up on this issue.

Since there were multiple backends, the value of the variable completion-at-point-functions should have codeium-completion-at-point on the top of the list.

The easy way to do it was to use cape which was also mentioned in the Readme file.

from codeium.el.

theherk avatar theherk commented on July 21, 2024

I'm really glad you found an easy solution, but would you mind documenting it a bit further for us in the back. I feel like I have tried several permutations, and haven't found the winning one yet.

I have turned off LSP, which works, but isn't ideal. I have enabled cape and used the hook as configured in this README with:

  (add-hook 'python-mode-hook
      (lambda ()
          (setq-local completion-at-point-functions
              (list (cape-super-capf #'codeium-completion-at-point #'lsp-completion-at-point)))))

Which somehow leaves lsp earlier in the completions-at-point-functions list. I attempted the add and remove functions in the linked issue, which seemed to work but seems a bit heavy handed since it will require quite a bit of configuration for each mode.

What I'd like is to have codeium at the head of all completions lists in some modes. But I'm failing to see how to force the issue.

from codeium.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.