all repos — nixfiles @ 85da03b9865aea657d86a0a4ac69f53799886593

System and user configuration, managed by nix and home-manager

Emacs: Configure language server protocol

Alan Pearce
commit

85da03b9865aea657d86a0a4ac69f53799886593

parent

dc361800826fde7920a6dfb4b9e422fcfd06aa7f

1 file changed, 15 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -1910,6 +1910,21 @@ ;; entities) across buffers in the same project. Neat!
(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