From ac406e38d01359da50826a09112f01d12e83f00e Mon Sep 17 00:00:00 2001 From: XeroOl Date: Tue, 30 Apr 2024 16:56:41 -0500 Subject: [PATCH] Next attempt to fix emacs --- src/fennel-ls/formatter.fnl | 6 ++---- src/fennel-ls/handlers.fnl | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/fennel-ls/formatter.fnl b/src/fennel-ls/formatter.fnl index fc294cb..abaaea9 100644 --- a/src/fennel-ls/formatter.fnl +++ b/src/fennel-ls/formatter.fnl @@ -104,11 +104,9 @@ fntype is one of fn or λ or lambda" (doto (case (analyze-fn result.definition) {:fntype _} {: label - :kind (if (label:find ":") kinds.Method kinds.Function) - :textEdit {:newText label}} + :kind (if (label:find ":") kinds.Method kinds.Function)} _ {: label - :kind kinds.Variable - :textEdit {:newText label}}) + :kind kinds.Variable}) (tset :documentation (hover-format result)))) {: hover-format diff --git a/src/fennel-ls/handlers.fnl b/src/fennel-ls/handlers.fnl index c5ea95c..f7cb0eb 100644 --- a/src/fennel-ls/handlers.fnl +++ b/src/fennel-ls/handlers.fnl @@ -205,7 +205,6 @@ Every time the client sends a message, it gets handled by a function in the corr (each [_ completion (ipairs ?completions)] (set completion.filterText (.. prefix completion.label)) (set completion.insertText (.. prefix completion.label)))) - ;; (set completion.textEdit {:newText completion.label :range input-range}))) (each [_ completion (ipairs ?completions)] (set completion.textEdit {:newText completion.label :range input-range})))) ?completions))))