From c66f8cc69a8341d3780ffd273c6db1302b102164 Mon Sep 17 00:00:00 2001
From: AChavali <aryadevchavali1@gmail.com>
Date: Sat, 8 Feb 2020 13:20:17 +0000
Subject: +lsp config

LSP config that triggers lsp-ui-doc-mode when lsp is loaded. Also sets
lsp-ui-doc-position to top because it's really annoying to see it pop up
on cursor.
---
 doom.d/modules/config.org | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'doom.d/modules')

diff --git a/doom.d/modules/config.org b/doom.d/modules/config.org
index f012982..3d895ae 100644
--- a/doom.d/modules/config.org
+++ b/doom.d/modules/config.org
@@ -176,6 +176,14 @@ Emacs doesn't have the full range of styles that I want, so lemme just do it mys
                   (label . 0)
                   (statement-cont . +)))))
 #+END_SRC
+** LSP
+Add lsp-ui-doc-mode to lsp-ui-mode: allows you to see documentation in a little
+VSCode style web-kit window.
+#+BEGIN_SRC elisp
+(after! lsp-mode
+  (add-hook 'lsp-mode-hook #'(lambda () (lsp-ui-doc-mode +1))))
+(after! lsp-ui
+  (setq lsp-ui-doc-position 'top))
 #+END_SRC
 ** CSharp
 - I have custom installed the omnisharp roslyn executable, so I'd rather use
-- 
cgit v1.2.3-13-gbd6f