[ZeroBrane Studio] Re: How to disable autocomplete

  • From: Steve Conley <stevel.conley@xxxxxxxxx>
  • To: zerobrane@xxxxxxxxxxxxx
  • Date: Sat, 27 Apr 2024 08:54:07 -0400

I have put "autocomplete=false" in my user.lua file.
I started making a lot of edits to one of my main lua programs.
I'm adding some debugging "print" statements to the top of many of my
functions.
After deleting or adding a few characters on each line of code, I'm getting
the following error.
I do not get the error if I paste a new line of code into the edit window:
only getting it if I'm deleting or adding characters to an existing line.

How can I turn off other automations, like:  color coding reserved words?
Also, after getting the error several times (over 10), ZBS crashed (or at
least the window closed).

[image: image.png]

On Thu, Apr 25, 2024 at 6:04 PM Steve Conley <stevel.conley@xxxxxxxxx>
wrote:

I added the following to my system user.lua file

-- to turn dynamic words on and to start suggestions after 4 characters
acandtip.nodynwords = true

So far, ZBS has not shown any other errors.
Some of the files I'm opening in my lua program (not necessarily in ZBS)
are quite large and have a lot of variables in them.
If I start having issues again, I'll try some of the changes you suggested
in this email thread.


On Wed, Apr 24, 2024 at 1:53 AM Paul K <paul@xxxxxxxxxxxxx> wrote:

Hi Steve,

In ZBS, how do I disable the auto complete that shows while I'm
typing?  I think it may be causing some issues and would like to try to
disable it.

You have a couple of options (see full list of autocomplete options
here:
https://studio.zerobrane.com/doc-general-preferences#auto-complete-and-tooltip
):
- You can disable autocomplete completely: autocomplete=false
- Increase the number of characters after which autocomplete is
offered: acandtip.startat=4 (2 is the default)
- Disable symbols: acandtip.symbols=false
- Disable dynamic words from opened files: acandtip.nodynwords=false

If you want to disable just autocomplete for reserved words, then you
can add `ide.specs.lua.keywords[1] = ""` to the config file (user.lua)
and also set `acandtip.symbols=false` (as otherwise keywords may be
extracted as dynamic words from other source code files).

Paul.

On Tue, Apr 23, 2024 at 2:18 PM Steve Conley <stevel.conley@xxxxxxxxx>
wrote:

I'm using Lua for Windows as my lua program.

In ZBS, how do I disable the auto complete that shows while I'm
typing?  I think it may be causing some issues and would like to try to
disable it.
I would also like to disable the auto complete of reserved words (func,
if, then, end, etc.)


PNG image

Other related posts: