|
From: | Dmitry Gutov |
Subject: | Re: Make company-backends buffer-local? |
Date: | Sun, 4 Mar 2018 21:26:45 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 |
On 3/4/18 9:47 AM, Jefferson Carpenter wrote:
First post to this list -- sorry if this is either not a good suggestion at all, not right format, or too irrelevant.You can do this in your own init script. Performance benefits are negligible, but you can organize your backends this way.The company-backends variable is currently a global variable. The backend that serves completions is the first one that returns a prefix for the location at point.Are there any barriers to making company-backends a buffer-local variable? I don't see any drawbacks - it would take a pretty small amount of extra memory to create a copy for each buffer.
[Prev in Thread] | Current Thread | [Next in Thread] |