dotfiles/.config/emacs/modules/editor/earnemod-lsp.el

30 lines
577 B
EmacsLisp

;;; earnemod-lsp.el --- -*- lexical-binding: t; -*-
;; Copyright (C) 2021 earnest ma
;; SPDX-License-Identifier: MIT
;; Author: earnest ma <me@earne.link>
;;; Code:
(use-package lsp-mode
:init
(setq lsp-keymap-prefix "C-c l")
:hook
((lsp-mode . lsp-enable-which-key-integration)))
(use-package lsp-ui
:demand
:after lsp-mode)
(use-package lsp-ivy
:if (fboundp 'ivy-mode)
:demand
:after (lsp-mode ivy-mode))
(use-package lsp-treemacs
:if (fboundp 'treemacs)
:demand
:after (lsp-mode treemacs))
(provide 'earnemod-lsp)
;;; earnemod-lsp.el ends here