          (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

                                      (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

;; LSP
(use-package eglot
  :commands eglot-ensure
  :after (project flymake):straight
  t
  :hook ((python-mode . eglot-ensure)
         (rust-mode . eglot-ensure)
         (shell-script-mode . eglot-ensure)
