   :diminish
   :config
   (global-company-mode t)
-  (setq ;; Only 2 letters required for completion to activate.
-        company-minimum-prefix-length 3
+  (setq company-minimum-prefix-length 3
         ;; Search other buffers for completion candidates
         company-dabbrev-other-buffers t
         company-dabbrev-code-other-buffers t

  ;; patch for prolog
  (add-to-list 'auto-mode-alist '("\\.pl$" . prolog-mode))


  (straight-use-package 'tree-sitter)
  (straight-use-package 'tree-sitter-langs)


    :hook
    (tuareg-mode . tree-sitter-mode))

  (use-package scala-mode :defer t
    :straight (scala-mode :type git
			  :host github
			  :repo "Kazark/emacs-scala-mode"
			  :branch "scala3")

    :hook
    (scala-mode . tree-sitter-mode))

