diff options
author | Alan Pearce | 2018-02-02 11:50:49 +0100 |
---|---|---|
committer | Alan Pearce | 2018-02-02 11:50:49 +0100 |
commit | 85da03b9865aea657d86a0a4ac69f53799886593 (patch) | |
tree | 0ba4d0825258e15cccb8ae1526c05d543afa2d82 /emacs | |
parent | dc361800826fde7920a6dfb4b9e422fcfd06aa7f (diff) | |
download | nixfiles-85da03b9865aea657d86a0a4ac69f53799886593.tar.lz nixfiles-85da03b9865aea657d86a0a4ac69f53799886593.tar.zst nixfiles-85da03b9865aea657d86a0a4ac69f53799886593.zip |
Emacs: Configure language server protocol
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.emacs.d/main.el | 15 |
1 files changed, 15 insertions, 0 deletions
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 |