mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-27 17:27:51 +08:00
Disable word suggestions on Elixir cells (#763)
This commit is contained in:
parent
a5cb366c73
commit
859dfd9eb2
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue