mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-10 04:20:13 -08:00
fix(cc): eglot support in cuda-ts-mode
This commit is contained in:
parent
46c2058141
commit
eb734f21e9
1 changed files with 3 additions and 3 deletions
|
|
@ -147,9 +147,9 @@ This is ignored by ccls.")
|
||||||
(use-package! cuda-mode
|
(use-package! cuda-mode
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
|
(set-eglot-client! 'cuda-mode '("clangd"))
|
||||||
(when (modulep! +lsp)
|
(when (modulep! +lsp)
|
||||||
(add-hook 'cuda-mode-local-vars-hook #'lsp! 'append))
|
(add-hook 'cuda-mode-local-vars-hook #'lsp! 'append)))
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
(use-package! cuda-ts-mode
|
(use-package! cuda-ts-mode
|
||||||
|
|
@ -159,6 +159,7 @@ This is ignored by ccls.")
|
||||||
(set-tree-sitter! 'cuda-mode 'cuda-ts-mode
|
(set-tree-sitter! 'cuda-mode 'cuda-ts-mode
|
||||||
'((cuda :url "https://github.com/tree-sitter-grammars/tree-sitter-cuda")))
|
'((cuda :url "https://github.com/tree-sitter-grammars/tree-sitter-cuda")))
|
||||||
:config
|
:config
|
||||||
|
(set-eglot-client! 'cuda-ts-mode '("clangd"))
|
||||||
(when (modulep! +lsp)
|
(when (modulep! +lsp)
|
||||||
(add-hook 'cuda-ts-mode-local-vars-hook #'lsp! 'append)))
|
(add-hook 'cuda-ts-mode-local-vars-hook #'lsp! 'append)))
|
||||||
|
|
||||||
|
|
@ -184,7 +185,6 @@ This is ignored by ccls.")
|
||||||
;; and grinding your system to a halt.
|
;; and grinding your system to a halt.
|
||||||
(cl-pushnew (format "-j=%d" (max 1 (/ (doom-system-cpus) 2)))
|
(cl-pushnew (format "-j=%d" (max 1 (/ (doom-system-cpus) 2)))
|
||||||
lsp-clients-clangd-args))
|
lsp-clients-clangd-args))
|
||||||
(set-eglot-client! 'cuda-mode '("clangd"))
|
|
||||||
|
|
||||||
;; Map eglot specific helper
|
;; Map eglot specific helper
|
||||||
(map! :localleader
|
(map! :localleader
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue