Switch to clang-tools from clang16

This commit is contained in:
Konstantin Nazarov 2023-08-09 00:20:59 +01:00
parent 7185753421
commit ffa0476f2d
Signed by: knazarov
GPG key ID: 4CFE0A42FA409C22
2 changed files with 13 additions and 2 deletions

View file

@ -147,7 +147,7 @@ in
nheko nheko
mullvad-vpn mullvad-vpn
mullvad mullvad
clang-tools # mainly for clang-format (clang-tools.override { llvmPackages = llvmPackages_16; }) # mainly for clang-format
(emacsWithPackagesFromUsePackage { (emacsWithPackagesFromUsePackage {
config = ./emacs.el; config = ./emacs.el;
defaultInitFile = true; defaultInitFile = true;

View file

@ -285,6 +285,10 @@
(evil-set-undo-system 'undo-redo) (evil-set-undo-system 'undo-redo)
(evil-collection-init))) (evil-collection-init)))
(evil-set-leader 'normal " ")
(evil-define-key 'normal 'global (kbd "<leader>f") 'find-file)
(evil-define-key 'normal 'global (kbd "<leader>b") 'switch-to-buffer)
;; -------- Tools and environment -------- ;; -------- Tools and environment --------
;; By default, Emacs doesn't add system path to its search places ;; By default, Emacs doesn't add system path to its search places
@ -924,9 +928,16 @@ window, unless BACKGROUND (prefix-argument) is non-nil.
(with-eval-after-load 'eglot (with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs (add-to-list 'eglot-server-programs
`(c++-mode . ("clangd")))) `(c++-mode . ("clangd")))
(add-to-list 'eglot-server-programs
`(c++-ts-mode . ("clangd")))
(add-to-list 'eglot-server-programs
`(c-ts-mode . ("clangd"))
))
(add-hook 'c++-mode-hook 'eglot-ensure) (add-hook 'c++-mode-hook 'eglot-ensure)
(add-hook 'c++-ts-mode-hook 'eglot-ensure)
(add-hook 'c-ts-mode-hook 'eglot-ensure)
(use-package clang-format) (use-package clang-format)
(use-package clang-format+) (use-package clang-format+)