   :init
   (setq projectile-require-project-root nil)
   (setq projectile--mode-line "P"))
+
+;; fix to let eglot find project dir in mono repos
+(defun my-projectile-project-find-function (dir)
+  (let ((root (projectile-project-root dir)))
+    (and root (cons 'transient root))))
+
 (use-package counsel-projectile
   :ensure t
   :config
-  (counsel-projectile-mode 1))
+  (counsel-projectile-mode 1)
+  (with-eval-after-load 'project
+    (add-to-list 'project-find-functions 'my-projectile-project-find-function)))
 (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
 (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
 

  :config
  (setq magit-diff-refine-hunk t)
  (setq magit-ediff-dwim-show-on-hunks t)
  :ensure t)



              ("bg-dim" . "#333333")
              ("bg-alt" . "#181732")
              ("bg-hl-line" . "#555555"))))
(load-theme 'modus-vivendi t)

;; Show colons in modeline
(column-number-mode 1)
