From 859dfd9eb2bf50ca9341e5fde47b51b7ad56b816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Mon, 6 Dec 2021 13:10:16 +0100 Subject: [PATCH] Disable word suggestions on Elixir cells (#763) --- assets/js/cell/live_editor.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/js/cell/live_editor.js b/assets/js/cell/live_editor.js index 683710fb5..8b14af3d0 100644 --- a/assets/js/cell/live_editor.js +++ b/assets/js/cell/live_editor.js @@ -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 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, });