| | |
| | | (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
|
| | |
| | | (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
|
| | |
| | | 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")
|