Disable word suggestions on Elixir cells (#763)

This commit is contained in:
Jonatan Kłosko 2021-12-06 13:10:16 +01:00 committed by GitHub
parent a5cb366c73
commit 859dfd9eb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,6 +168,11 @@ class LiveEditor {
this.type === "elixir" && settings.editor_auto_completion,
tabCompletion: "on",
suggestSelection: "first",
// For Elixir word suggestions are confusing at times.
// For example given `defmodule<CURSOR> Foo do`, if the
// user opens completion list and then jumps to the end
// of the line we would get "defmodule" as a word completion.
wordBasedSuggestions: this.type !== "elixir",
parameterHints: this.type === "elixir" && settings.editor_auto_signature,
});