;;; packages.el --- C# Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2019 Sylvain Benner & Contributors
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;; This file is not part of GNU Emacs.
;;; License: GPLv3
(setq csharp-packages
'(
company
csharp-mode
evil-matchit
ggtags
counsel-gtags
helm-gtags
omnisharp
flycheck
))
(defun csharp/init-omnisharp ()
(use-package omnisharp
:defer t
:init
(spacemacs//csharp-setup-backend)
:config
(spacemacs//csharp-configure)
(defun csharp/post-init-company ()
(spacemacs//csharp-setup-company))
(defun csharp/init-csharp-mode ()
(use-package csharp-mode
:defer t))
(defun csharp/post-init-evil-matchit ()
(with-eval-after-load 'evil-matchit
(plist-put evilmi-plugins 'csharp-mode
'((evilmi-simple-get-tag evilmi-simple-jump)
(evilmi-c-get-tag evilmi-c-jump))))
(add-hook 'csharp-mode-hook 'turn-on-evil-matchit-mode))
(defun csharp/post-init-flycheck ()
(spacemacs/enable-flycheck 'csharp-mode))
(defun csharp/post-init-ggtags ()
(add-hook 'csharp-mode-local-vars-hook #'spacemacs/ggtags-mode-enable))
(defun csharp/post-init-counsel-gtags ()
(spacemacs/counsel-gtags-define-keys-for-mode 'csharp-mode))
(defun csharp/post-init-helm-gtags ()
(spacemacs/helm-gtags-define-keys-for-mode 'csharp-mode))