fix(gs/emacs): Properly disable c++/clang flycheck checker
This has to be disabled per-buffer Change-Id: I56bcf25d78c56d531b361f64f26bff9e9a986c39 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1257 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
parent
be6fe93dd4
commit
f80eb91c2a
1 changed files with 4 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
(after! flycheck
|
(after! flycheck
|
||||||
(add-to-list 'flycheck-disabled-checkers 'c/c++-gcc)
|
(add-to-list 'flycheck-disabled-checkers 'c/c++-gcc)
|
||||||
(add-to-list 'flycheck-disabled-checkers 'c/c++-clangd))
|
(add-to-list 'flycheck-disabled-checkers 'c/c++-clang))
|
||||||
|
|
||||||
(defun +grfn/cpp-setup ()
|
(defun +grfn/cpp-setup ()
|
||||||
(when (s-starts-with?
|
(when (s-starts-with?
|
||||||
|
@ -14,7 +14,9 @@
|
||||||
(setq lsp-clients-clangd-executable "/home/grfn/code/depot/users/glittershark/emacs.d/nix-clangd.sh"
|
(setq lsp-clients-clangd-executable "/home/grfn/code/depot/users/glittershark/emacs.d/nix-clangd.sh"
|
||||||
lsp-clients-clangd-args nil)
|
lsp-clients-clangd-args nil)
|
||||||
(google-set-c-style)
|
(google-set-c-style)
|
||||||
(lsp)))
|
(lsp)
|
||||||
|
(add-to-list 'flycheck-disabled-checkers 'c/c++-gcc)
|
||||||
|
(add-to-list 'flycheck-disabled-checkers 'c/c++-clang)))
|
||||||
|
|
||||||
(add-hook 'c++-mode-hook #'+grfn/cpp-setup)
|
(add-hook 'c++-mode-hook #'+grfn/cpp-setup)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue