-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I get completion from specific files using other modes? #936
Comments
This sounds similar to #709, which is unresolved. But you could around-advice |
Okay. I'm not really a programmer yet (I wish I could study Lisp, but right now I can only use Emacs to learn other languages...), so that's a bit complicated for me at the moment. But, if you can give a bit more details on how to achieve that, I'm great at recognizing patterns and following instructions. Thanks, @dgutov! |
Around-advice is done with Temporary value binding is done with As for how to figure out the exact language context at point... that would require some digging. Maybe |
Just a little "beep" here. Any advances? I had hoped company-lsp would work in an mhtml mode buffer but i doesn't despite html-ls chugging away in lsp-mode for mhtml. |
@rileyrg If If it's the case, please report that to https://github.com/tigersoldier/company-lsp/issues |
Maybe I'm doing something wrong? Before I raise any issues maybe you could cast your eye here. I'm calling lsp mode for mhtml buffers (triggered for my .html.twig file just fine). company-diag shows that only company-dabbrev is providing completions and that comes after company-lsp. I have required lsp-html but it's unclear to me just how I should configure to actually modify or direct company-lsp further. As you can see here lsp is connected to htlm-ls
https://github.com/rileyrg/Emacs-Customisations/blob/master/lisp/emacs-config.org |
mxhtml? 😕 In any case, the answer is "I don't know". |
Apologies. mhtml. |
First of all thank you very much for this awesome project.
Let's say I'm working on
index.html
usingweb-mode
and onstyle. css
usingcss-mode
. If I create a class onstyle. css
, would it be possible for it to be completed on theindex.html
?(setq company-dabbrev-other-buffers 't)
only get completions from the same mode, and(setq company-dabbrev-other-buffers 'all)
will get it from files in all modes, and that's not what I want.Maybe there's a way to have completions by project using something projectile?
The text was updated successfully, but these errors were encountered: