Use transient instead of hydra (#3)

* Use transient instead of hydra
* Use global map instead of my custom map
This commit is contained in:
Maciej 2023-03-16 20:47:35 +02:00 committed by GitHub
parent 835c3325ef
commit 8d81d91314
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 173 additions and 311 deletions

View file

@ -18,29 +18,11 @@
:straight t
:defer t)
(defhydra my-fsharp/context-hydra (:color teal :hint nil)
"
^
^ FSharp actions^
^
^ _r_: Reload buffer _f_: Format buffer
^ _i_: Indent buffer _m_: iMenu
^ _e_: Show errors
"
("q" nil "cancel" :color blue)
("r" revert-buffer-no-confirm)
("i" indent-region)
("e" flycheck-list-errors)
("f" lsp-format-buffer)
("m" lsp-ui-imenu))
(defun activate-fsharp-mode ()
"Activate F# goodies."
(set-indent 4)
(column-enforce-n 100)
(lsp-deferred)
(define-key fsharp-mode-map (kbd "C-c l") 'my-fsharp/context-hydra/body)
;; Company list override
(add-to-list (make-local-variable 'company-backends)