Hover doc on keybind
This commit is contained in:
		
							parent
							
								
									e87e53447f
								
							
						
					
					
						commit
						0b23369f03
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								init.el
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -250,8 +250,7 @@
 | 
			
		|||
  (add-hook 'evil-insert-state-exit-hook #'lsp-signature-stop))
 | 
			
		||||
(use-package lsp-ui
 | 
			
		||||
  :init
 | 
			
		||||
  (setq lsp-ui-doc-show-with-cursor t
 | 
			
		||||
        lsp-ui-doc-position 'top
 | 
			
		||||
  (setq lsp-ui-doc-position 'at-point
 | 
			
		||||
        lsp-ui-doc-delay 0.5)
 | 
			
		||||
  :config
 | 
			
		||||
  (define-key lsp-ui-mode-map [remap xref-find-definitions] #'lsp-ui-peek-find-definitions)
 | 
			
		||||
| 
						 | 
				
			
			@ -264,6 +263,7 @@
 | 
			
		|||
  (define-key evil-normal-state-map (kbd "SPC l = r") #'lsp-format-region)
 | 
			
		||||
  (define-key evil-normal-state-map (kbd "SPC l s q") #'lsp-workspace-shutdown)
 | 
			
		||||
  (define-key evil-normal-state-map (kbd "SPC l s r") #'lsp-workspace-restart)
 | 
			
		||||
  (define-key evil-normal-state-map (kbd "SPC l h") #'lsp-ui-doc-glance)
 | 
			
		||||
  ;; Controls inside references popup
 | 
			
		||||
  (define-key lsp-ui-peek-mode-map (kbd "j") #'lsp-ui-peek--select-next)
 | 
			
		||||
  (define-key lsp-ui-peek-mode-map (kbd "k") #'lsp-ui-peek--select-prev)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue