From 85da03b9865aea657d86a0a4ac69f53799886593 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 2 Feb 2018 11:50:49 +0100 Subject: Emacs: Configure language server protocol --- emacs/.emacs.d/main.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index fd0c3e36..d960a206 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 -- cgit 1.4.1