summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--emacs/.emacs.d/main.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index fd0c3e3..d960a20 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -1910,6 +1910,21 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer."
 
 (use-package imenu-anywhere
   :bind ("C-x C-." . ivy-imenu-anywhere))
+
+;;;;; Language Server Protocol
+
+;; Enable smart language features by communicating with an outside application. Neat.
+
+(use-package lsp-mode
+  :config (progn
+            (add-hook 'lsp-after-open-hook #'lsp-enable-imenu)))
+
+(use-package company-lsp
+  :after (company lsp-mode)
+  :config (progn
+            (add-to-list 'company-backends #'company-lsp)
+            (setq company-lsp-async t)))
+
 ;;;;; Lisps
 
 ;;;;;; All