dev: merge branch 'master'
This commit is contained in:
commit
4cfb00a0e5
23 changed files with 111 additions and 111 deletions
|
@ -4,15 +4,6 @@
|
|||
:commands eglot eglot-ensure
|
||||
:hook (eglot-managed-mode . +lsp-optimization-mode)
|
||||
:init
|
||||
(defadvice! +eglot--ensure-available-mode-a (fn)
|
||||
"Run `eglot-ensure' if the current mode has support."
|
||||
:around #'eglot-ensure
|
||||
(when (alist-get major-mode eglot-server-programs nil nil
|
||||
(lambda (modes key)
|
||||
(if (listp modes)
|
||||
(member key modes)
|
||||
(eq key modes))))
|
||||
(funcall fn)))
|
||||
(setq eglot-sync-connect 1
|
||||
eglot-autoshutdown t
|
||||
;; NOTE: We disable eglot-auto-display-help-buffer because :select t in
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
"Dispatch to call the currently used lsp client entrypoint"
|
||||
(interactive)
|
||||
(if (modulep! +eglot)
|
||||
(eglot-ensure)
|
||||
(when (require 'eglot nil t)
|
||||
(if (eglot--lookup-mode major-mode)
|
||||
(eglot-ensure)
|
||||
(eglot--message "No client defined for %s" major-mode)))
|
||||
(unless (bound-and-true-p lsp-mode)
|
||||
(lsp-deferred))))
|
||||
|
|
|
@ -227,7 +227,10 @@ Only has an effect in GUI Emacs.")
|
|||
(:map magit-status-mode-map
|
||||
:nv "gz" #'magit-refresh)
|
||||
(:map magit-diff-mode-map
|
||||
:nv "gd" #'magit-jump-to-diffstat-or-diff))
|
||||
:nv "gd" #'magit-jump-to-diffstat-or-diff)
|
||||
;; Don't open recursive process buffers
|
||||
(:map magit-process-mode-map
|
||||
:nv "`" #'ignore))
|
||||
|
||||
;; A more intuitive behavior for TAB in magit buffers:
|
||||
(define-key! 'normal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue