+after tags to lazy load OmniSharp testing
Unless I need to test something right now, I won't load OmniSharp straight away. As a result, I'll just leave it as a 'on load' option: I intentionally have to turn on OmniSharp-mode myself before I get these testing features.
This commit is contained in:
@@ -211,6 +211,8 @@ My docsets are stored in .docsets for ease of use
|
|||||||
** C#
|
** C#
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(after! csharp-mode
|
(after! csharp-mode
|
||||||
|
(after! omnisharp
|
||||||
|
(after! counsel-etags
|
||||||
(defun oreodave/csharp/get-unit-test-in-project ()
|
(defun oreodave/csharp/get-unit-test-in-project ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((tags-file (counsel-etags-locate-tags-file))
|
(let* ((tags-file (counsel-etags-locate-tags-file))
|
||||||
@@ -234,9 +236,8 @@ My docsets are stored in .docsets for ease of use
|
|||||||
(counsel-etags-forward-line linenum)
|
(counsel-etags-forward-line linenum)
|
||||||
(omnisharp-unit-test-at-point))
|
(omnisharp-unit-test-at-point))
|
||||||
))
|
))
|
||||||
:caller 'oreodave/csharp/get-unit-tests-in-project)))
|
:caller 'oreodave/csharp/get-unit-tests-in-project))))
|
||||||
|
(setq omnisharp-server-executable-path "~/bin/omnisharp/run"))
|
||||||
(setq omnisharp-server-executable-path "~/bin/omnisharp/run")
|
|
||||||
|
|
||||||
(add-hook 'csharp-mode-hook '(lambda()
|
(add-hook 'csharp-mode-hook '(lambda()
|
||||||
(setq c-basic-offset 4)
|
(setq c-basic-offset 4)
|
||||||
|
|||||||
Reference in New Issue
Block a user