   :straight t
   :after flymake
   :config (progn
-            ;; https://github.com/crate-ci/typos
             (flymake-quickdef-backend flymake-check-typos
+              ;; https://github.com/crate-ci/typos
               :pre-let ((typos-exec (executable-find "typos"))):pre-check
               (unless typos-exec
                 (error "Cannot find typos executable"))

                                      (pos (flymake-diag-region fmqd-source lnum col))
                                      (beg (car pos))
                                      (end (cdr pos))
                                      (msg (format "%s" text)))
                                 (list fmqd-source beg end :warning msg)))
            (add-hook 'flymake-diagnostic-functions 'flymake-check-typos)))

;; Company for autocompletions
(use-package company

         (lua-mode . eglot-ensure)
         (go-mode . eglot-ensure)):config
  (progn
    (add-to-list 'eglot-stay-out-of 'flymake)
    (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend)
    (add-to-list 'eglot-server-programs
                 '(lua-mode . ("~/.luarocks/bin/lua-lsp")))
    ;; Can be enabled on fiction like things
