Skip to content

shnarazk/zed-lean4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zed-lean4

How to type unicode symbols in

  • Use a latex_commands-to-unicode_symbols converter like lucr
  • Use simple-completion extension (But I don't know how to configure it)
  • Use snippet (CONFIG/snippets/lean4.json) like this (But a newline is inserted after completion):
{
  "arrow-left": {
    "prefix": "left",
    "body": ["", "$0"],
    "description": "left arrow: ←"
  },
  "arrow-right": {
    "prefix": "right",
    "body": ["", "$0"],
    "description": "right arrow: →"
  },
  "exists": {
    "prefix": "exists",
    "body": ["∃ $1, $2", "$0"],
    "description": "exists: ∃"
  },
  "forall": {
    "prefix": "forall",
    "body": ["∀ $1, $2", "$0"],
    "description": "forall: ∀"
  },
  "function": {
    "prefix": "fun",
    "body": ["(fun $1 ($2) ↦ $3)", "$0"],
    "description": "function: (fun f () ↦ )"
  },
  "namespace": {
    "prefix": "namespace",
    "body": ["namespace $1\n\nend $1", "$0"],
    "description": "namespace block"
  },
  "pair": {
    "prefix": "pair",
    "body": ["⟨$1, $2⟩", "$0"],
    "description": "pair: ⟨,⟩"
  },
  "times": {
    "prefix": "times",
    "body": ["×", "$0"],
    "description": "times: ×"
  }
}