Home Gen376 @ 2024-10-23-13:30
This commit is contained in:
parent
3bf9a24372
commit
e6ca78b611
@ -139,7 +139,7 @@
|
|||||||
(defun my-ui-doc-glance-then-focus ()
|
(defun my-ui-doc-glance-then-focus ()
|
||||||
"Glances UI-Doc if not present, otherwise focus"
|
"Glances UI-Doc if not present, otherwise focus"
|
||||||
(interactive)
|
(interactive)
|
||||||
(if lsp-ui-doc--bounds
|
(if (lsp-ui-doc--frame-visible-p)
|
||||||
(progn
|
(progn
|
||||||
(lsp-ui-doc-hide)
|
(lsp-ui-doc-hide)
|
||||||
(lsp-ui-doc-show)
|
(lsp-ui-doc-show)
|
||||||
@ -149,7 +149,4 @@
|
|||||||
(map! :map (cpp-mode-map c-mode-map c++-mode-map lsp-mode-map)
|
(map! :map (cpp-mode-map c-mode-map c++-mode-map lsp-mode-map)
|
||||||
:desc "Show Doc-UI" :n "C-h" #'my-ui-doc-glance-then-focus)
|
:desc "Show Doc-UI" :n "C-h" #'my-ui-doc-glance-then-focus)
|
||||||
|
|
||||||
|
|
||||||
;; Bind C-h to the handler function
|
|
||||||
(map! "C-h" #'my-c-h-handler)
|
|
||||||
(set-formatter! 'alejandra '("alejandra" "--quiet") :modes '(nix-mode))
|
(set-formatter! 'alejandra '("alejandra" "--quiet") :modes '(nix-mode))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user