mirror of https://github.com/Chizi123/.emacs.d.git

Joel Grunbaum
2021-04-27 83addc8180a5c48d4483202639e73f296732d65f
Reenabled LSP, quit of workspace exit. Disable clang-format as need to
remove before save hook for otheer buffers
1 files modified
5 ■■■■■ changed files
config.org 5 ●●●●● patch | view | raw | blame | history
config.org
@@ -799,7 +799,7 @@
    (setq company-minimum-prefix-length 3))
#+END_SRC
** COMMENT LSP Mode
** LSP Mode
Use LSP for completion suggestions.
Causes too much memory usage, need to debug.
#+BEGIN_SRC emacs-lisp
@@ -821,6 +821,7 @@
    (add-hook lsp-mode-hook lsp-enable-which-key-integration)
    (setq read-process-output-max (* 1024 1024))
    (setq lsp-completion-provider :capf)
    (setq lsp-keep-workspace-alive 'nil)
    (add-to-list 'exec-path "~/.cargo/bin"))
  (use-package lsp-ui
@@ -987,7 +988,7 @@
                                     company-dabbrev-code
                                     company-irony)))
#+END_SRC
**** Clang-format
**** COMMENT Clang-format
Automatically format buffer on save.
#+BEGIN_SRC emacs-lisp
  (when (file-exists-p "/usr/share/clang/clang-format.el")