Browse Source

Clean up some LSP commons

master
Julio Biason 4 years ago
parent
commit
1e5082fc68
  1. 20
      emacs.d/init.el

20
emacs.d/init.el

@ -60,17 +60,23 @@
:hook ((python-mode . lsp) :hook ((python-mode . lsp)
(rust-mode . lsp)) (rust-mode . lsp))
:commands lsp :commands lsp
:init (global-unset-key "\C-l") :init (setq lsp-keymap-prefix "C-l")
:hook (lsp-mode . lsp-enable-which-key-integration)
(rust-mode . lsp)
(python-mode . lsp)
:config :config
(setq lsp-enable-indentation t (setq lsp-enable-indentation t
lsp-enable-on-type-formatting t lsp-enable-on-type-formatting t)
lsp-keymap-prefix "C-l") :commands lsp)
(add-hook 'lsp-mode-hook #'lsp-enable-which-key-integration))
(use-package lsp-ui ;; (use-package lsp-ui
:commands lsp-ui-mode ;; :commands lsp-ui-mode
;; :ensure t
;; :config (setq lsp-ui-sideline-show-diagnostics t))
(use-package lsp-ivy
:ensure t :ensure t
:config (setq lsp-ui-sideline-show-diagnostics t)) :commands lsp-ivy-workspace-symbol)
;; Markdown mode ;; Markdown mode
(use-package markdown-mode (use-package markdown-mode

Loading…
Cancel
Save