Use transient instead of hydra
This commit is contained in:
parent
835c3325ef
commit
1ad9d7b5b0
8 changed files with 178 additions and 311 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue