From 784acaa64d892c155c3d7f4c0e85f8fd656f507c Mon Sep 17 00:00:00 2001 From: "M. Yas. Davoodeh" <30480116+Davoodeh@users.noreply.github.com> Date: Sat, 12 Dec 2020 22:10:24 +0330 Subject: [PATCH] Set ligratures for csharp-mode --- modules/lang/csharp/config.el | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/modules/lang/csharp/config.el b/modules/lang/csharp/config.el index 19345c26c..dff7a683a 100644 --- a/modules/lang/csharp/config.el +++ b/modules/lang/csharp/config.el @@ -7,6 +7,26 @@ (set-rotate-patterns! 'csharp-mode :symbols '(("public" "protected" "private") ("class" "struct"))) + (set-ligatures! 'csharp-mode + ;; Functional + :lambda "() =>" + ;; Types + :null "null" + :true "true" + :false "false" + :int "int" + :float "float" + :str "string" + :bool "bool" + :list "List" + ;; Flow + :not "!" + :in "in" + :and "&&" + :or "||" + :for "for" + :return "return" + :yield "yield") (sp-local-pair 'csharp-mode "<" ">" :when '(+csharp-sp-point-in-type-p)