lang/csharp: adapt to :lookup
This commit is contained in:
parent
59f33855dd
commit
6b164a6103
1 changed files with 27 additions and 24 deletions
|
@ -15,34 +15,37 @@
|
||||||
|
|
||||||
(set! :company-backend 'csharp-mode '(company-omnisharp))
|
(set! :company-backend 'csharp-mode '(company-omnisharp))
|
||||||
|
|
||||||
|
(set! :lookup 'csharp-mode
|
||||||
|
:definition #'omnisharp-go-to-definition
|
||||||
|
:references #'omnisharp-find-usages
|
||||||
|
:documentation #'omnisharp-current-type-documentation)
|
||||||
|
|
||||||
(map! :map omnisharp-mode-map
|
(map! :map omnisharp-mode-map
|
||||||
:m "gd" #'omnisharp-go-to-definition
|
:localleader
|
||||||
|
:n "b" #'omnisharp-recompile
|
||||||
|
|
||||||
(:localleader
|
(:prefix "r"
|
||||||
:n "b" #'omnisharp-recompile
|
:n "i" #'omnisharp-fix-code-issue-at-point
|
||||||
|
:n "u" #'omnisharp-fix-usings
|
||||||
|
:n "r" #'omnisharp-rename
|
||||||
|
:n "a" #'omnisharp-show-last-auto-complete-result
|
||||||
|
:n "o" #'omnisharp-show-overloads-at-point)
|
||||||
|
|
||||||
(:prefix "r"
|
(:prefix "f"
|
||||||
:n "i" #'omnisharp-fix-code-issue-at-point
|
:n "u" #'omnisharp-find-usages
|
||||||
:n "u" #'omnisharp-fix-usings
|
:n "i" #'omnisharp-find-implementations
|
||||||
:n "r" #'omnisharp-rename
|
:n "f" #'omnisharp-navigate-to-current-file-member
|
||||||
:n "a" #'omnisharp-show-last-auto-complete-result
|
:n "m" #'omnisharp-navigate-to-solution-member
|
||||||
:n "o" #'omnisharp-show-overloads-at-point)
|
:n "M" #'omnisharp-navigate-to-solution-file-then-file-member
|
||||||
|
:n "F" #'omnisharp-navigate-to-solution-file
|
||||||
|
:n "r" #'omnisharp-navigate-to-region
|
||||||
|
:n "ti" #'omnisharp-current-type-information
|
||||||
|
:n "td" #'omnisharp-current-type-documentation)
|
||||||
|
|
||||||
(:prefix "f"
|
(:prefix "t"
|
||||||
:n "u" #'omnisharp-find-usages
|
:n "r" (λ! (omnisharp-unit-test "fixture"))
|
||||||
:n "i" #'omnisharp-find-implementations
|
:n "s" (λ! (omnisharp-unit-test "single"))
|
||||||
:n "f" #'omnisharp-navigate-to-current-file-member
|
:n "a" (λ! (omnisharp-unit-test "all")))))
|
||||||
:n "m" #'omnisharp-navigate-to-solution-member
|
|
||||||
:n "M" #'omnisharp-navigate-to-solution-file-then-file-member
|
|
||||||
:n "F" #'omnisharp-navigate-to-solution-file
|
|
||||||
:n "r" #'omnisharp-navigate-to-region
|
|
||||||
:n "ti" #'omnisharp-current-type-information
|
|
||||||
:n "td" #'omnisharp-current-type-documentation)
|
|
||||||
|
|
||||||
(:prefix "t"
|
|
||||||
:n "r" (λ! (omnisharp-unit-test "fixture"))
|
|
||||||
:n "s" (λ! (omnisharp-unit-test "single"))
|
|
||||||
:n "a" (λ! (omnisharp-unit-test "all"))))))
|
|
||||||
|
|
||||||
|
|
||||||
(def-package! shader-mode :mode "\\.shader$") ; unity shaders
|
(def-package! shader-mode :mode "\\.shader$") ; unity shaders
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue