fix(cc): eglot support in cuda-ts-mode

This commit is contained in:
Henrik Lissner
2025-09-03 18:07:37 +02:00
parent 46c2058141
commit eb734f21e9

View File

@@ -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