Replace cmake-ts-mode with cmake-mode

cmake-ts-mode is not mature enough yet.
This commit is contained in:
Sameer Rahmani 2024-05-18 15:34:49 +01:00
parent dda0f8ec92
commit 701d2ec9d8
Signed by: lxsameer
GPG Key ID: 8741FACBF412FFA5
2 changed files with 5 additions and 4 deletions

View File

@ -28,6 +28,7 @@ let
(with pkgs.emacsPackages; [
eldoc-cmake
ninja-mode
cmake-mode
]);
drv = makeFG42Drv {

View File

@ -35,11 +35,11 @@
"--completion-style=detailed")
"Arguments to pass to clangd.")
(use! cmake-ts-mode
"Enable cmake-ts-mode instead of the non-TS version."
:mode ("\\(?:CMakeLists\\.txt\\|\\.cmake\\)\\'" . cmake-ts-mode)
(use! cmake-mode
"Enable cmake-mode instead of the non-TS version."
:mode ("\\(?:CMakeLists\\.txt\\|\\.cmake\\)\\'" . cmake-mode)
:hook
(cmake-ts-mode . fg42/setup-completion)
(cmake-mode . fg42/setup-completion)
(before-save . fg42/lang-server-format))