Code Monkey home page Code Monkey logo

Comments (6)

jtmoulia avatar jtmoulia commented on July 22, 2024

Hey @edubkendo, have you tried grouping the backends?

Something like:

(add-to-list 'company-backends '(company-alchemist company-yasnippet))

Referencing #66 -- maybe this will help.

from alchemist.el.

edubkendo avatar edubkendo commented on July 22, 2024

Ah so it looks like what I'm seeing is the result of how company works to some extent, and the fact that these two modes aren't returning nil when they don't have a result. At least that's what I gather from reading #66 .

from alchemist.el.

jtmoulia avatar jtmoulia commented on July 22, 2024

Yup, but you should be able to group the backends, which is what I was going for in the code snippet above. It's not a general solution to #66, but I think it'll work for you since you want to merge the results from 2 backends.

From the doc for the company-backends variable:

The completions from back-ends in a group are merged (but only from those that return the same `prefix').

One potential issue is that company-alchemist and company-yasnippet use different functions to get the prefix, so they might not return the same prefix. But, I think that as long as the cursor is at the end of a "word" you should be fine.

Sorry, haven't had a chance to test this!

from alchemist.el.

edubkendo avatar edubkendo commented on July 22, 2024

unfortunately, when I try that, I only see yasnippet results, alchemists stop working.

from alchemist.el.

edubkendo avatar edubkendo commented on July 22, 2024

whoops sorry, take that back. it works great the snippet just needs a tweak:

(add-to-list 'company-backends '(alchemist-company company-yasnippet))

from alchemist.el.

jtmoulia avatar jtmoulia commented on July 22, 2024

Ah, my bad -- good to hear it works!

from alchemist.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.