Fix lsp loading
This commit is contained in:
+8
-9
@@ -354,7 +354,8 @@ On the fly syntax checking.
|
|||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:defer t
|
:commands lsp
|
||||||
|
:after which-key
|
||||||
:hook
|
:hook
|
||||||
((c-mode ; clangd
|
((c-mode ; clangd
|
||||||
c++-mode ; clangd
|
c++-mode ; clangd
|
||||||
@@ -372,22 +373,21 @@ On the fly syntax checking.
|
|||||||
(dolist (leader-key (list dot/leader-key dot/leader-alt-key))
|
(dolist (leader-key (list dot/leader-key dot/leader-alt-key))
|
||||||
(let ((lsp-keymap-prefix (concat leader-key " l")))
|
(let ((lsp-keymap-prefix (concat leader-key " l")))
|
||||||
(lsp-enable-which-key-integration)))
|
(lsp-enable-which-key-integration)))
|
||||||
|
)
|
||||||
:commands lsp)
|
|
||||||
|
|
||||||
(use-package company-lsp
|
(use-package company-lsp
|
||||||
:after company lsp-mode
|
:commands company-lsp
|
||||||
|
:after (company lsp-mode)
|
||||||
:custom
|
:custom
|
||||||
(company-transformers nil)
|
(company-transformers nil)
|
||||||
(company-lsp-async t)
|
(company-lsp-async t)
|
||||||
(company-lsp-cache-candidates nil)
|
(company-lsp-cache-candidates nil)
|
||||||
(company-lsp-enable-snippet t)
|
(company-lsp-enable-snippet t)
|
||||||
:commands company-lsp
|
|
||||||
:config (push 'company-lsp company-backends))
|
:config (push 'company-lsp company-backends))
|
||||||
|
|
||||||
(use-package lsp-ui
|
(use-package lsp-ui
|
||||||
:after flycheck lsp-mode
|
:commands lsp-ui-mode
|
||||||
:hook (lsp-mode . lsp-ui-mode)
|
:after (flycheck lsp-mode)
|
||||||
:custom
|
:custom
|
||||||
(lsp-ui-doc-border (face-foreground 'default))
|
(lsp-ui-doc-border (face-foreground 'default))
|
||||||
(lsp-ui-doc-enable nil)
|
(lsp-ui-doc-enable nil)
|
||||||
@@ -399,8 +399,7 @@ On the fly syntax checking.
|
|||||||
(lsp-ui-flycheck-list-position 'right)
|
(lsp-ui-flycheck-list-position 'right)
|
||||||
(lsp-ui-flycheck-live-reporting t)
|
(lsp-ui-flycheck-live-reporting t)
|
||||||
(lsp-ui-peek-enable nil)
|
(lsp-ui-peek-enable nil)
|
||||||
(lsp-ui-sideline-enable nil)
|
(lsp-ui-sideline-enable nil))
|
||||||
:commands lsp-ui-mode)
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
**** YASnippet
|
**** YASnippet
|
||||||
|
|||||||
Reference in New Issue
Block a user