 
 (core/local 'rust-mode-map
             "rn" 'lsp-rename
-            "ta" 'cargo-process-test
-            "tc" 'cargo-process-current-test
-            "tf" 'cargo-process-current-file-tests)
+            "tp" 'cargo-process-test
+            "tt" 'cargo-process-current-file-tests)
 
 ;; Typescript
 

;; Language configuration.

;;; Code:

(use-package go-mode
  :straight t

(defvar go-vendor-buffer-name "*go vendor*"
  "Name of buffer for go test output.")

(defun go/spawn (cmd buf-name)
  (compilation-start cmd nil (lambda (_n) buf-name)))

(defun go/go-test-current-pkg ()
  (interactive)
  (go/spawn "go test" go-test-buffer-name))

(defun go/go-test-root ()
  (interactive)
  (let ((cmd (format "cd %s; go test ./..." (projectile-project-root))))
    (go/spawn cmd go-test-buffer-name)))

(defun go/go-test-run (test-name)
  (interactive (list (read-string "Test name: ")))
  (let ((cmd
         (format "cd %s; go test -run %s ./..."
                 (projectile-project-root)
                 test-name)))
    (go/spawn cmd go-test-buffer-name)))

(defun go/go-vendor ()
  (interactive)
  (let ((cmd (format "cd %s; go mod vendor" (projectile-project-root))))
    (go/spawn cmd go-vendor-buffer-name)))

;; Haskell

