Skip to content

The OnType formatting workaround hasn't worked for me #4

@4mr0

Description

@4mr0

This is how i have applied it to my eglot config

(use-package eglot
  :hook
  (prog-mode . eglot-ensure)
  :custom
  (eglot-events-buffer-size 0)
  (eglot-sync-connect nil)
  (eglot-connect-timeout nil)
  (eglot-autoshutdown t)
  (eglot-send-changes-idle-time 3)
  (flymake-no-changes-timeout 5)
  (eldoc-echo-area-use-multiline-p nil)
  :config
  (setq eglot-ignored-server-capabilities '(:documentHighlightProvider))
  (setq eglot-ignored-server-capabilities '(:inlayHintProvider :hoverProvider))
  (add-to-list 'eglot-server-programs '(ada-light-mode . ("ada_language_server")))
  (push :documentOnTypeFormattingProvider eglot-ignored-server-capabilities)
  )

Formatting has still been applied to the buffer:

with Ada.Text_IO; use Ada.Text_IO;

procedure hello is
begin
   Put_Line ("Hello"); -- Formatting applied here...
end hello;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions