<commit_before>(provide 'init-csharp)

;; TODO Make more Unity-friendly

(use-package omnisharp :defer t
  :config
  (progn
    ;; (setq flycheck-idle-change-delay 2)
    (setq omnisharp-server-executable-path "/Users/hlissner/Omni/OmniSharpServer/OmniSharp/bin/Debug/OmniSharp.exe")))

(use-package shaderlab-mode :defer t
  :mode "\\.shader")

(use-package csharp-mode
  :mode "\\.cs\\'"
  :config
  (progn
    (diminish 'abbrev-mode)
    (imap csharp-mode-map (kbd "C-SPC") 'omnisharp-auto-complete))
  :init
  (progn
    (setq csharp-want-imenu nil)
    (add-hook! 'csharp-mode-hook (omnisharp-mode t) (flycheck-mode t))))<commit_msg>Simpler csharp support (back to Monodevelop)<commit_after>(provide 'init-csharp)

;; (use-package omnisharp :defer t
;;   :config
;;   (progn
;;     (setq omnisharp-server-executable-path "~/Dropbox/projects/lib/Omnisharp/server/OmniSharp/bin/Debug/OmniSharp.exe")
;;     (use-package company
;;       :config
;;       (add-to-list 'company-backends 'company-omnisharp))))

(use-package csharp-mode :mode "\\.cs$")
;; (use-package csharp-mode
;;   :mode "\\.cs$"
;;   :config
;;   (imap csharp-mode-map (kbd "C-SPC") 'omnisharp-auto-complete))
;;   :init
;;   (add-hook! 'csharp-mode-hook (omnisharp-mode t) (flycheck-mode t)))

;; unity shaders
(use-package shaderlab-mode :mode "\\.shader$")

;; TODO Make more Unity-friendly
{'fraction_non_alphanumeric': 0.17655677655677657, 'fraction_numerical': 0.0007326007326007326, 'mean_word_length': 3.7430555555555554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5481224', 'n_tokens_mistral': 559, 'n_tokens_neox': 523, 'n_words': 100}