Commit bd07b04c authored by marc0s's avatar marc0s

fix(lsp): enable company and add some keybindings

parent 5e46882b
......@@ -255,7 +255,8 @@ work here..."
(define-key js-mode-map (kbd "C-c m") #'marc0s/mdn-search))
(use-package company
:ensure t)
:ensure t
:hook (prog-mode . company-mode))
(use-package company-quickhelp
:ensure t
:init (company-quickhelp-mode 1))
......@@ -333,22 +334,27 @@ work here..."
(use-package lsp-mode
:ensure t
:commands lsp
:hook (js2-mode . lsp)
:bind (("C-c l r" . lsp-rename)
("C-c l i" . lsp-goto-implementation)
("C-c l d" . lsp-goto-type-definition))
(setq lsp-auto-configure t)
;; lsp is not stable, crashes a lot
;;(add-hook 'lua-mode-hook #'lsp)
(add-hook 'js2-mode-hook #'lsp))
(setq lsp-auto-configure t))
(use-package lsp-ui
:ensure t
:commands lsp-ui-mode
(add-hook 'lsp-mode-hook 'lsp-ui-mode))
:hook (lsp-mode . lsp-ui-mode))
(use-package company-lsp
:ensure t
(push 'company-lsp company-backends))
(push 'company-lsp company-backends)
(setq company-lsp-cache-candidates t)
(setq company-lsp-async t)
(setq company-lsp-enable-recompletion t)
(setq company-lsp-enable-snippet t))
(use-package plantuml-mode
:ensure t
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment