Comments (6)
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.
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.
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.
unfortunately, when I try that, I only see yasnippet results, alchemists stop working.
from alchemist.el.
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.
Ah, my bad -- good to hear it works!
from alchemist.el.
Related Issues (20)
- Jump to definition functionality broken by multi-line aliasing
- Alchemist is using wrong version
- Switch to/scroll in help HOT 1
- Multiple instances of Iex repl
- alchemist-goto-definition-at-point crashes server when editing files with multiple import
- Eldoc support
- Changing alchemist-key-command-prefix not working HOT 4
- Compilation errors and warnings when running tests aren't clickable
- `alchemist-report-filter` fails to display relevant output HOT 2
- iex run current buffer
- How to run tests and jump the test output buffer?
- question about evaluation coming from lisp/slime HOT 1
- Alchemist Emacs menu is empty HOT 1
- Can't jumping to the definition of a function which is defined in a module imported by the __using__ macro.
- Spam on alchemist-elixir.org HOT 4
- mix.el - new Emacs package for Mix HOT 2
- Alchemist Resurrection HOT 21
- Hey there.
- `alchemist-iex-run` does not find `erl`
- Alchemist alternative
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 alchemist.el.