 ;;   :config (add-to-list 'eglot-server-programs '((caml-mode tuareg-mode) . ("ocamllsp")
 ;;                                                 (rust-mode) . ("rust-analyzer"))))
 
-;; (use-package eglot :pin melpa
-;;   :config
-;;   (add-to-list 'eglot-server-programs `(tuareg-mode . ("ocamllsp"))))
+(use-package eglot :pin melpa
+  :config
+  (add-to-list 'eglot-server-programs `(tuareg-mode . ("ocamllsp"))))
 
 ;; (use-package eglot-jl :pin melpa)
 
+
+
 (use-package rustic :pin melpa
   :config
-  (setq rustic-lsp-server 'rust-analyzer))
+  (setq rustic-lsp-client 'eglot
+        rustic-lsp-server 'rust-analyzer))
 
 ;; (setq lsp-keymap-prefix "s-l")
 
-(use-package lsp-mode
-    :hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
-           (python-mode . lsp-deferred)
-           (rust-mode . lsp-deffered)
-           (go-mode . lsp-deffered)
-           (ocaml-mode . lsp-deffered)
-           (scala-mode . lsp-deffered)
-           (java-mode . lsp-deffered)
-           ;; if you want which-key integration
-           (lsp-mode . lsp-enable-which-key-integration))
-    :commands (lsp lsp-deffered))
-
-;; optionally
-(use-package lsp-ui :commands lsp-ui-mode)
-;; if you are ivy user
-(use-package lsp-ivy :commands lsp-ivy-workspace-symbol)
-
-;; optionally if you want to use debugger
-(use-package dap-mode)
+;; (use-package lsp-mode
+;;     :hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
+;;            (python-mode . lsp)
+;;            (rust-mode . lsp)
+;;            (go-mode . lsp)
+;;            (ocaml-mode . lsp)
+;;            (scala-mode . lsp)
+;;            (java-mode . lsp)
+;;            ;; if you want which-key integration
+;;            (lsp-mode . lsp-enable-which-key-integration))
+;;     :commands (lsp))
+
+;; ;; optionally
+;; (use-package lsp-ui :commands lsp-ui-mode)
+;; ;; if you are ivy user
+;; (use-package lsp-ivy :commands lsp-ivy-workspace-symbol)
+
+;; ;; optionally if you want to use debugger
+;; (use-package dap-mode)
 ;; (use-package dap-LANGUAGE) to load the dap adapter for your language
 
 ;; optional if you want which-key integration


(use-package phabricator :pin melpa)

(use-package org-brain :ensure t :pin melpa)

(use-package polymode :config (add-hook 'org-brain-visualize-mode-hook #'org-brain-polymode))


;; haskell mode
(use-package haskell-mode :pin melpa :ensure t)
;; (use-package lsp-haskell :pin melpa :ensure t :after haskell-mode)

;; meson mode
(use-package meson-mode :pin melpa :ensure t)
