[{"data":1,"prerenderedAt":3079},["ShallowReactive",2],{"navigation_docs":3,"-tooling-editor-setup":205,"-tooling-editor-setup-surround":3074},[4,31,67,111,132,163,189],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":30},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,15,20,25],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start","i-lucide-play",{"title":26,"path":27,"stem":28,"icon":29},"Agent Skill","\u002Fgetting-started\u002Fagent-skill","1.getting-started\u002F4.agent-skill","i-lucide-sparkles",false,{"title":32,"icon":33,"path":34,"stem":35,"children":36,"page":30},"Authoring","i-lucide-pen-line","\u002Fauthoring","2.authoring",[37,42,47,52,57,62],{"title":38,"path":39,"stem":40,"icon":41},"Comark syntax","\u002Fauthoring\u002Fcomark-syntax","2.authoring\u002F1.comark-syntax","i-lucide-file-code",{"title":43,"path":44,"stem":45,"icon":46},"Frontmatter","\u002Fauthoring\u002Ffrontmatter","2.authoring\u002F2.frontmatter","i-lucide-heading",{"title":48,"path":49,"stem":50,"icon":51},"Components","\u002Fauthoring\u002Fcomponents","2.authoring\u002F3.components","i-lucide-blocks",{"title":53,"path":54,"stem":55,"icon":56},"Merge tags and data","\u002Fauthoring\u002Fmerge-tags-and-data","2.authoring\u002F4.merge-tags-and-data","i-lucide-braces",{"title":58,"path":59,"stem":60,"icon":61},"Actions and spans","\u002Fauthoring\u002Factions-and-spans","2.authoring\u002F5.actions-and-spans","i-lucide-mouse-pointer-click",{"title":63,"path":64,"stem":65,"icon":66},"Compile errors","\u002Fauthoring\u002Fcompile-errors","2.authoring\u002F6.compile-errors","i-lucide-circle-alert",{"title":68,"icon":69,"path":70,"stem":71,"children":72,"page":30},"Kits","i-lucide-palette","\u002Fkits","3.kits",[73,78,83,87,91,96,101,106],{"title":74,"path":75,"stem":76,"icon":77},"What is a kit","\u002Fkits\u002Fwhat-is-a-kit","3.kits\u002F1.what-is-a-kit","i-lucide-package",{"title":79,"path":80,"stem":81,"icon":82},"kit.yaml","\u002Fkits\u002Fkit-yaml","3.kits\u002F2.kit-yaml","i-lucide-file-cog",{"title":84,"path":85,"stem":86,"icon":51},"Component schemas","\u002Fkits\u002Fcomponent-schemas","3.kits\u002F3.component-schemas",{"title":88,"path":89,"stem":90,"icon":56},"Templates and views","\u002Fkits\u002Ftemplates-and-views","3.kits\u002F4.templates-and-views",{"title":92,"path":93,"stem":94,"icon":95},"Template checking","\u002Fkits\u002Ftemplate-checking","3.kits\u002F5.template-checking","i-lucide-shield-check",{"title":97,"path":98,"stem":99,"icon":100},"Go types and funcs","\u002Fkits\u002Fgo-types-and-funcs","3.kits\u002F6.go-types-and-funcs","i-lucide-code",{"title":102,"path":103,"stem":104,"icon":105},"Email-safe HTML","\u002Fkits\u002Femail-safe-html","3.kits\u002F7.email-safe-html","i-lucide-mail-check",{"title":107,"path":108,"stem":109,"icon":110},"Plain text","\u002Fkits\u002Fplain-text","3.kits\u002F8.plain-text","i-lucide-file-text",{"title":112,"icon":113,"path":114,"stem":115,"children":116,"page":30},"Sending","i-lucide-send","\u002Fsending","4.sending",[117,122,127],{"title":118,"path":119,"stem":120,"icon":121},"Profiles and config","\u002Fsending\u002Fprofiles-and-config","4.sending\u002F1.profiles-and-config","i-lucide-settings",{"title":123,"path":124,"stem":125,"icon":126},"Message and MIME","\u002Fsending\u002Fmessage-and-mime","4.sending\u002F2.message-and-mime","i-lucide-mail",{"title":128,"path":129,"stem":130,"icon":131},"SMTP","\u002Fsending\u002Fsmtp","4.sending\u002F3.smtp","i-lucide-server",{"title":133,"icon":134,"path":135,"stem":136,"children":137,"page":30},"Tooling","i-lucide-wrench","\u002Ftooling","5.tooling",[138,143,148,153,158],{"title":139,"path":140,"stem":141,"icon":142},"The lttr CLI","\u002Ftooling\u002Fcli","5.tooling\u002F1.cli","i-lucide-terminal",{"title":144,"path":145,"stem":146,"icon":147},"Studio","\u002Ftooling\u002Fstudio","5.tooling\u002F2.studio","i-lucide-eye",{"title":149,"path":150,"stem":151,"icon":152},"Editor setup","\u002Ftooling\u002Feditor-setup","5.tooling\u002F3.editor-setup","i-lucide-plug",{"title":154,"path":155,"stem":156,"icon":157},"Screenshots","\u002Ftooling\u002Fscreenshots","5.tooling\u002F4.screenshots","i-lucide-camera",{"title":159,"path":160,"stem":161,"icon":162},"Goldens and testing","\u002Ftooling\u002Fgoldens-and-testing","5.tooling\u002F5.goldens-and-testing","i-lucide-flask-conical",{"title":164,"icon":165,"path":166,"stem":167,"children":168,"page":30},"Guides","i-lucide-book-open","\u002Fguides","6.guides",[169,174,179,184],{"title":170,"path":171,"stem":172,"icon":173},"Build your own kit","\u002Fguides\u002Fbuild-your-own-kit","6.guides\u002F1.build-your-own-kit","i-lucide-hammer",{"title":175,"path":176,"stem":177,"icon":178},"The Quiet kit","\u002Fguides\u002Fthe-quiet-kit","6.guides\u002F2.the-quiet-kit","i-lucide-mail-open",{"title":180,"path":181,"stem":182,"icon":183},"Migrating from v0.1","\u002Fguides\u002Fmigrating-from-v0-1","6.guides\u002F3.migrating-from-v0-1","i-lucide-arrow-right-left",{"title":185,"path":186,"stem":187,"icon":188},"Releasing","\u002Fguides\u002Freleasing","6.guides\u002F4.releasing","i-lucide-tag",{"title":190,"icon":191,"path":192,"stem":193,"children":194,"page":30},"Reference","i-lucide-library","\u002Freference","7.reference",[195,200],{"title":196,"path":197,"stem":198,"icon":199},"API reference","\u002Freference\u002Fapi-reference","7.reference\u002F1.api-reference","i-lucide-list-tree",{"title":201,"path":202,"stem":203,"icon":204},"Gallery","\u002Freference\u002Fgallery","7.reference\u002F2.gallery","i-lucide-images",{"id":206,"title":149,"body":207,"description":3067,"extension":3068,"links":3069,"meta":3070,"navigation":3071,"path":150,"seo":3072,"stem":151,"__hash__":3073},"docs\u002F5.tooling\u002F3.editor-setup.md",{"type":208,"value":209,"toc":3055},"minimark",[210,219,317,320,325,332,430,434,460,470,535,545,560,568,571,583,916,925,929,937,961,968,1085,1107,1113,1134,1138,1148,1195,1202,1310,1317,1321,1332,1347,1350,1410,1413,1467,1546,1555,1559,1573,1680,1686,1792,1795,1809,1956,1970,2052,2064,2068,2084,2091,2192,2271,2844,2859,2865,2936,2939,3010,3017,3021,3051],[211,212,213,214,218],"p",{},"lttr has a language server. Your editor runs it and talks to it over stdin and stdout, and you get the same checks as ",[215,216,217],"code",{},"lttr lint"," and the studio, as you type, before you save:",[220,221,222,237,247,273,290],"ul",{},[223,224,225,229,230,232,233,236],"li",{},[226,227,228],"strong",{},"Problems."," Every error and warning, at its line and column. That includes a kit's own problems, shown in the kit file they are in, such as ",[215,231,79],{}," or a component's ",[215,234,235],{},"html.tmpl",".",[223,238,239,242,243,246],{},[226,240,241],{},"Quick fixes."," A problem with a \"did you mean\" suggestion offers a fix, ",[215,244,245],{},"Replace with \"otp_code\"",", which edits the misspelt name in place.",[223,248,249,252,253,256,257,260,261,264,265,268,269,272],{},[226,250,251],{},"Completion."," In a template: component names after ",[215,254,255],{},"::","; attribute names, and binding names as ",[215,258,259],{},":invoice=\"\"","; enum values; and data paths, segment by segment, in a merge tag (",[215,262,263],{},"{{invoice.",") or a binding's value (",[215,266,267],{},":invoice=\"invoice.","). In a kit template: token and var names, and ",[215,270,271],{},".Attrs"," fields.",[223,274,275,278,279,282,283,286,287,236],{},[226,276,277],{},"Hover."," On ",[215,280,281],{},"::name",", the component: its attributes, bindings, content rules and children. On a data path, in a merge tag or a binding's value, the path and its type, such as ",[215,284,285],{},"invoice.total"," → ",[215,288,289],{},"tutorial.Money",[223,291,292,295,296,298,299,302,303,305,306,309,310,313,314,316],{},[226,293,294],{},"Go to definition."," From ",[215,297,281],{}," to the component's ",[215,300,301],{},"component.yaml"," and ",[215,304,235],{},". From ",[215,307,308],{},"token \"…\""," or ",[215,311,312],{},"var \"…\""," in a kit template to its key in ",[215,315,79],{},". A kit that is embedded in a binary, not on disk, has nowhere to go.",[211,318,319],{},"The server rebuilds 150 ms after you stop typing. A template that stops compiling keeps its last good render in the studio, and its problems show at once.",[321,322,324],"h2",{"id":323},"choose-the-server","Choose the server",[211,326,327,328,331],{},"There are two servers, because the ",[215,329,330],{},"lttr"," binary cannot know an app's own Go types. Loading such a kit with stand-in types would report a false error on every binding, so a typed app runs the server from its own program instead:",[333,334,335,354],"table",{},[336,337,338],"thead",{},[339,340,341,345,348,351],"tr",{},[342,343,344],"th",{},"Your templates",[342,346,347],{},"Run",[342,349,350],{},"Problems",[342,352,353],{},"Completion, hover, definition",[355,356,357,381,408],"tbody",{},[339,358,359,370,375,378],{},[360,361,362,365,366,369],"td",{},[215,363,364],{},"quiet",", ",[215,367,368],{},"plain",", or a kit directory with no Go types",[360,371,372],{},[215,373,374],{},"lttr lsp",[360,376,377],{},"Exact",[360,379,380],{},"Yes",[339,382,383,386,402,405],{},[360,384,385],{},"An app whose kit binds its own Go types",[360,387,388,391,392,397,398,401],{},[215,389,390],{},"emaildev lsp",": your ",[393,394,396],"a",{"href":395},"\u002Ftooling\u002Fstudio#run-it-for-your-own-go-types","studio program","'s ",[215,399,400],{},"lsp"," subcommand",[360,403,404],{},"Exact, with the real types",[360,406,407],{},"Yes, from the real types",[339,409,410,415,418,421],{},[360,411,412,413],{},"That app's templates, opened under ",[215,414,374],{},[360,416,417],{},"—",[360,419,420],{},"None",[360,422,423,424],{},"Yes, from ",[393,425,427],{"href":426},"#describe-a-typed-app-in-schemajson",[215,428,429],{},".lttr\u002Fschema.json",[431,432,374],"h3",{"id":433},"lttr-lsp",[435,436,442],"pre",{"className":437,"code":438,"filename":439,"language":440,"meta":441,"style":441},"language-bash shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark","go install github.com\u002Fsulv-io\u002Flttr\u002Fcmd\u002Flttr@latest\n","Terminal","bash","",[215,443,444],{"__ignoreMap":441},[445,446,449,453,457],"span",{"class":447,"line":448},"line",1,[445,450,452],{"class":451},"sSlKG","go",[445,454,456],{"class":455},"sRBGO"," install",[445,458,459],{"class":455}," github.com\u002Fsulv-io\u002Flttr\u002Fcmd\u002Flttr@latest\n",[211,461,462,463,465,466,469],{},"Your editor starts ",[215,464,374],{},"; you don't run it yourself. What a file is checked against depends on ",[215,467,468],{},"-kit",":",[220,471,472,502],{},[223,473,474,479,480,365,482,484,485,302,488,491,492,495,496,498,499,501],{},[226,475,476,477],{},"With ",[215,478,468],{}," (",[215,481,364],{},[215,483,368],{}," or a kit directory, with ",[215,486,487],{},"-dir",[215,489,490],{},"-golden"," as for ",[215,493,494],{},"serve","), every file belongs to that kit. A Markdown file outside its samples and outside the kit directory is compiled against it as untyped data. ",[215,497,429],{}," is not read: a kit that binds Go types, named with ",[215,500,468],{},", fails to load and shows the hint below.",[223,503,504,509,510],{},[226,505,506,507],{},"Without ",[215,508,468],{},", each file finds its own kit:\n",[220,511,512,518,524],{},[223,513,514,515,517],{},"a file in a kit directory (the nearest one up holding ",[215,516,79],{},") belongs to that kit, and so does any other Markdown file inside it;",[223,519,520,521,523],{},"a file that a ",[215,522,429],{}," describes, in its kit or template directory, gets completion, hover and definition from it, and no problems;",[223,525,526,527,529,530,302,532,534],{},"any other file belongs to ",[215,528,364],{},", with ",[215,531,487],{},[215,533,490],{},". Only Quiet's own templates are checked there: a README or a changelog gets no lttr problems.",[211,536,537,538,365,540,302,542,544],{},"Relative ",[215,539,468],{},[215,541,487],{},[215,543,490],{}," paths are relative to the directory the editor starts the server in, so give absolute paths when you use them.",[211,546,547,548,550,551,553,554,556,557,559],{},"A kit that binds Go types fails to load under ",[215,549,374],{}," when no ",[215,552,429],{}," describes it, or when you name it with ",[215,555,468],{},". Its problem, on ",[215,558,79],{},", says what to do:",[435,561,566],{"className":562,"code":564,"filename":79,"language":565,"meta":441},[563],"language-text","types: \"Invoice\" is not registered; this kit binds Go types: run your app's studio program with the lsp subcommand (see Editor setup)\n","text",[215,567,564],{"__ignoreMap":441},[431,569,390],{"id":570},"emaildev-lsp",[211,572,573,574,579,580,582],{},"An app that runs the studio from Go, with ",[393,575,576],{"href":395},[215,577,578],{},"studio.Options",", has the language server too, as its ",[215,581,400],{}," subcommand. Every file builds with the program's kit, Go types, loader and samples, unsaved buffers included, so its problems and completions are exact:",[435,584,586],{"className":437,"code":585,"filename":439,"language":440,"meta":441,"style":441},"$ go run .\u002Fexamples\u002Ftutorial\u002Fcmd\u002Femaildev lsp -h\nusage: emaildev lsp [-studio host:port] [-golden dir] [-editor name] [-send-to addr,…]\n\nRuns the lttr language server for an editor, on stdin and stdout, until\nthe editor tells it to exit. Every file it opens builds with this\nprogram's kit, Go types and samples, unsaved buffers included, so its\nproblems and completions are exact. A change to Go data or Go types\nneeds a restart.\n\nWith -studio, it also serves the studio on host:port, on the same\nengine, so the preview follows the buffers as you type. If the studio\ncannot start, the editor shows why and the language server runs on.\n\nStdout carries the protocol alone; logs, and the studio's serving line,\ngo to stderr.\n\nflags:\n  -editor editor\n        editor that the studio's problem links open: vscode, cursor, zed, idea or none (default \"vscode\")\n  -golden dir\n        golden dir (\u003CName>.html and \u003CName>.txt) for the studio's golden status; empty for none (default \"examples\u002Ftutorial\u002Ftestdata\")\n  -send-to addresses\n        addresses the studio's test sends may go to, comma-separated (else LTTR_STUDIO_SEND_TO); SMTP from LTTR_SMTP_ADDR, _USER, _PASS and _FROM\n  -studio host:port\n        also serve the studio on host:port, following the editor's buffers\n",[215,587,588,609,645,652,694,735,744,750,756,761,767,773,779,784,799,809,814,820,829,843,849,881,890,901,907],{"__ignoreMap":441},[445,589,590,593,596,599,602,605],{"class":447,"line":448},[445,591,592],{"class":451},"$",[445,594,595],{"class":455}," go",[445,597,598],{"class":455}," run",[445,600,601],{"class":455}," .\u002Fexamples\u002Ftutorial\u002Fcmd\u002Femaildev",[445,603,604],{"class":455}," lsp",[445,606,608],{"class":607},"sTl1q"," -h\n",[445,610,612,615,618,620,624,627,630,633,636,639,642],{"class":447,"line":611},2,[445,613,614],{"class":451},"usage:",[445,616,617],{"class":455}," emaildev",[445,619,604],{"class":455},[445,621,623],{"class":622},"sihDN"," [-studio ",[445,625,626],{"class":455},"host:port]",[445,628,629],{"class":622}," [-golden ",[445,631,632],{"class":455},"dir]",[445,634,635],{"class":622}," [-editor ",[445,637,638],{"class":455},"name]",[445,640,641],{"class":622}," [-send-to ",[445,643,644],{"class":455},"addr,…]\n",[445,646,648],{"class":447,"line":647},3,[445,649,651],{"emptyLinePlaceholder":650},true,"\n",[445,653,655,658,661,664,667,670,673,676,679,682,685,688,691],{"class":447,"line":654},4,[445,656,657],{"class":451},"Runs",[445,659,660],{"class":455}," the",[445,662,663],{"class":455}," lttr",[445,665,666],{"class":455}," language",[445,668,669],{"class":455}," server",[445,671,672],{"class":455}," for",[445,674,675],{"class":455}," an",[445,677,678],{"class":455}," editor,",[445,680,681],{"class":455}," on",[445,683,684],{"class":455}," stdin",[445,686,687],{"class":455}," and",[445,689,690],{"class":455}," stdout,",[445,692,693],{"class":455}," until\n",[445,695,697,700,703,706,709,712,715,718,721,723,726,729,732],{"class":447,"line":696},5,[445,698,699],{"class":451},"the",[445,701,702],{"class":455}," editor",[445,704,705],{"class":455}," tells",[445,707,708],{"class":455}," it",[445,710,711],{"class":455}," to",[445,713,714],{"class":455}," exit.",[445,716,717],{"class":455}," Every",[445,719,720],{"class":455}," file",[445,722,708],{"class":455},[445,724,725],{"class":455}," opens",[445,727,728],{"class":455}," builds",[445,730,731],{"class":455}," with",[445,733,734],{"class":455}," this\n",[445,736,738,741],{"class":447,"line":737},6,[445,739,740],{"class":451},"program",[445,742,743],{"class":451},"'s kit, Go types and samples, unsaved buffers included, so its\n",[445,745,747],{"class":447,"line":746},7,[445,748,749],{"class":451},"problems and completions are exact. A change to Go data or Go types\n",[445,751,753],{"class":447,"line":752},8,[445,754,755],{"class":451},"needs a restart.\n",[445,757,759],{"class":447,"line":758},9,[445,760,651],{"emptyLinePlaceholder":650},[445,762,764],{"class":447,"line":763},10,[445,765,766],{"class":451},"With -studio, it also serves the studio on host:port, on the same\n",[445,768,770],{"class":447,"line":769},11,[445,771,772],{"class":451},"engine, so the preview follows the buffers as you type. If the studio\n",[445,774,776],{"class":447,"line":775},12,[445,777,778],{"class":451},"cannot start, the editor shows why and the language server runs on.\n",[445,780,782],{"class":447,"line":781},13,[445,783,651],{"emptyLinePlaceholder":650},[445,785,787,790,793,796],{"class":447,"line":786},14,[445,788,789],{"class":451},"Stdout carries the protocol alone; logs, and the studio'",[445,791,792],{"class":451},"s",[445,794,795],{"class":455}," serving",[445,797,798],{"class":455}," line,\n",[445,800,802,804,806],{"class":447,"line":801},15,[445,803,452],{"class":451},[445,805,711],{"class":455},[445,807,808],{"class":455}," stderr.\n",[445,810,812],{"class":447,"line":811},16,[445,813,651],{"emptyLinePlaceholder":650},[445,815,817],{"class":447,"line":816},17,[445,818,819],{"class":451},"flags:\n",[445,821,823,826],{"class":447,"line":822},18,[445,824,825],{"class":451},"  -editor",[445,827,828],{"class":455}," editor\n",[445,830,832,835,838,840],{"class":447,"line":831},19,[445,833,834],{"class":451},"        editor",[445,836,837],{"class":455}," that",[445,839,660],{"class":455},[445,841,842],{"class":455}," studio's problem links open: vscode, cursor, zed, idea or none (default \"vscode\")\n",[445,844,846],{"class":447,"line":845},20,[445,847,848],{"class":455},"  -golden dir\n",[445,850,852,855,858,861,864,867,869,872,875,878],{"class":447,"line":851},21,[445,853,854],{"class":455},"        golden dir (\u003CName>.html and \u003CName>.txt) for the studio's",[445,856,857],{"class":455}," golden",[445,859,860],{"class":455}," status",[445,862,863],{"class":622},"; ",[445,865,866],{"class":451},"empty",[445,868,672],{"class":455},[445,870,871],{"class":455}," none",[445,873,874],{"class":622}," (default ",[445,876,877],{"class":455},"\"examples\u002Ftutorial\u002Ftestdata\"",[445,879,880],{"class":622},")\n",[445,882,884,887],{"class":447,"line":883},22,[445,885,886],{"class":451},"  -send-to",[445,888,889],{"class":455}," addresses\n",[445,891,893,896,898],{"class":447,"line":892},23,[445,894,895],{"class":451},"        addresses",[445,897,660],{"class":455},[445,899,900],{"class":455}," studio's test sends may go to, comma-separated (else LTTR_STUDIO_SEND_TO); SMTP from LTTR_SMTP_ADDR, _USER, _PASS and _FROM\n",[445,902,904],{"class":447,"line":903},24,[445,905,906],{"class":455},"  -studio host:port\n",[445,908,910,913],{"class":447,"line":909},25,[445,911,912],{"class":455},"        also serve the studio on host:port, following the editor's",[445,914,915],{"class":455}," buffers\n",[211,917,918,302,921,924],{},[215,919,920],{},"KitDir",[215,922,923],{},"TemplateDir"," are relative to the working directory, so the editor must start it in the module root, as you run the studio. After a change to Go code, restart the language server from your editor.",[431,926,928],{"id":927},"describe-a-typed-app-in-schemajson","Describe a typed app in schema.json",[211,930,931,933,934,936],{},[215,932,429],{}," describes a typed app's kit and data for editors that run plain ",[215,935,374],{},". It holds:",[220,938,939,949,955],{},[223,940,941,944,945,948],{},[215,942,943],{},"version"," (1) and ",[215,946,947],{},"generator",", the lttr version that wrote it;",[223,950,951,954],{},[215,952,953],{},"kit",": its name, its directory, its default component, and every component with its attributes, bindings and content rules, the tokens, the vars, the span classes and the frontmatter keys;",[223,956,957,960],{},[215,958,959],{},"templateDir",", and for each template its file, its name, the Go type of its data, and every merge-tag path with its type.",[211,962,963,964,967],{},"Paths in it are slash-separated and relative to the module root. Your studio program writes it with its ",[215,965,966],{},"schema"," subcommand:",[435,969,971],{"className":437,"code":970,"filename":439,"language":440,"meta":441,"style":441},"$ go run .\u002Fexamples\u002Ftutorial\u002Fcmd\u002Femaildev schema -h\nusage: emaildev schema [-o file]\n\nWrites .lttr\u002Fschema.json at the module root (the nearest directory up from here\nholding go.mod): the kit's components, tokens and vars, and the data\npaths of each template, for editors. Run it again after changing the\nkit or the Go data types.\n\nflags:\n  -o file\n        write to file instead of \u003Cmodule root>\u002F.lttr\u002Fschema.json\n",[215,972,973,988,1002,1006,1043,1057,1062,1067,1071,1075,1080],{"__ignoreMap":441},[445,974,975,977,979,981,983,986],{"class":447,"line":448},[445,976,592],{"class":451},[445,978,595],{"class":455},[445,980,598],{"class":455},[445,982,601],{"class":455},[445,984,985],{"class":455}," schema",[445,987,608],{"class":607},[445,989,990,992,994,996,999],{"class":447,"line":611},[445,991,614],{"class":451},[445,993,617],{"class":455},[445,995,985],{"class":455},[445,997,998],{"class":622}," [-o ",[445,1000,1001],{"class":455},"file]\n",[445,1003,1004],{"class":447,"line":647},[445,1005,651],{"emptyLinePlaceholder":650},[445,1007,1008,1011,1014,1017,1019,1022,1025,1028,1031,1034,1037,1040],{"class":447,"line":654},[445,1009,1010],{"class":451},"Writes",[445,1012,1013],{"class":455}," .lttr\u002Fschema.json",[445,1015,1016],{"class":455}," at",[445,1018,660],{"class":455},[445,1020,1021],{"class":455}," module",[445,1023,1024],{"class":455}," root",[445,1026,1027],{"class":622}," (the ",[445,1029,1030],{"class":455},"nearest",[445,1032,1033],{"class":455}," directory",[445,1035,1036],{"class":455}," up",[445,1038,1039],{"class":455}," from",[445,1041,1042],{"class":455}," here\n",[445,1044,1045,1048,1051,1054],{"class":447,"line":696},[445,1046,1047],{"class":451},"holding",[445,1049,1050],{"class":455}," go.mod",[445,1052,1053],{"class":622},"): the kit",[445,1055,1056],{"class":455},"'s components, tokens and vars, and the data\n",[445,1058,1059],{"class":447,"line":737},[445,1060,1061],{"class":455},"paths of each template, for editors. Run it again after changing the\n",[445,1063,1064],{"class":447,"line":746},[445,1065,1066],{"class":455},"kit or the Go data types.\n",[445,1068,1069],{"class":447,"line":752},[445,1070,651],{"emptyLinePlaceholder":650},[445,1072,1073],{"class":447,"line":758},[445,1074,819],{"class":455},[445,1076,1077],{"class":447,"line":763},[445,1078,1079],{"class":455},"  -o file\n",[445,1081,1082],{"class":447,"line":769},[445,1083,1084],{"class":455},"        write to file instead of \u003Cmodule root>\u002F.lttr\u002Fschema.json\n",[211,1086,1087,1088,1091,1092,1095,1096,365,1098,1100,1101,1103,1104,1106],{},"The module root is the nearest directory up from the working directory that holds ",[215,1089,1090],{},"go.mod",", else the working directory. ",[226,1093,1094],{},"Commit the file",", and write it again after a change to the kit or to the Go data types. Without ",[215,1097,468],{},[215,1099,374],{}," finds the nearest ",[215,1102,429],{}," that describes the file and reads it again whenever it changes, so there is nothing to restart. It gives completion, hover and definition to the files in the kit directory and the template directory the file names, and never publishes problems for them: only ",[215,1105,390],{}," knows the real types.",[211,1108,1109,1110,236],{},"A file of another version is passed over, and the language server's log says why: ",[215,1111,1112],{},"schema.json version 2; regenerate it with your studio program's schema subcommand",[211,1114,1115,1116,1119,1120,1122,1123,1126,1127,1130,1131,1133],{},"In the lttr repository, ",[215,1117,1118],{},"make schema"," writes the tutorial's ",[215,1121,429],{},", and ",[215,1124,1125],{},"TestSchemaFresh"," in ",[215,1128,1129],{},"examples\u002Ftutorial"," fails when the committed file is out of date. It ignores ",[215,1132,947],{},", so a release that bumps the version doesn't make the file stale.",[321,1135,1137],{"id":1136},"preview-as-you-type","Preview as you type",[211,1139,1140,1143,1144,1147],{},[215,1141,1142],{},"-studio host:port"," serves ",[393,1145,1146],{"href":145},"the studio"," from the language server itself, on the same engine, so the preview follows the text in your editor before you save it:",[435,1149,1151],{"className":437,"code":1150,"filename":439,"language":440,"meta":441,"style":441},"lttr lsp -studio localhost:7070\nlttr lsp -kit .\u002Fkit -studio localhost:7070\ngo run .\u002Fexamples\u002Ftutorial\u002Fcmd\u002Femaildev lsp -studio localhost:7070\n",[215,1152,1153,1165,1181],{"__ignoreMap":441},[445,1154,1155,1157,1159,1162],{"class":447,"line":448},[445,1156,330],{"class":451},[445,1158,604],{"class":455},[445,1160,1161],{"class":607}," -studio",[445,1163,1164],{"class":455}," localhost:7070\n",[445,1166,1167,1169,1171,1174,1177,1179],{"class":447,"line":611},[445,1168,330],{"class":451},[445,1170,604],{"class":455},[445,1172,1173],{"class":607}," -kit",[445,1175,1176],{"class":455}," .\u002Fkit",[445,1178,1161],{"class":607},[445,1180,1164],{"class":455},[445,1182,1183,1185,1187,1189,1191,1193],{"class":447,"line":647},[445,1184,452],{"class":451},[445,1186,598],{"class":455},[445,1188,601],{"class":455},[445,1190,604],{"class":455},[445,1192,1161],{"class":607},[445,1194,1164],{"class":455},[211,1196,1197,1198,1201],{},"Put the flag in your editor's command, then open the address in a browser. The studio's serving line, ",[215,1199,1200],{},"lttr studio: serving kit (2 samples) on http:\u002F\u002Flocalhost:7070",", goes to the server's stderr, which most editors keep in a log.",[220,1203,1204,1220,1238,1244,1262,1279,1288],{},[223,1205,1206,1209,1210,1212,1213,1215,1216,1219],{},[226,1207,1208],{},"Which kit it serves."," With ",[215,1211,468],{},", that kit. Without it, the kit directory at or above the working directory, else ",[215,1214,364],{},". ",[215,1217,1218],{},"emaildev lsp -studio"," serves the app's sample set.",[223,1221,1222,1225,1226,1229,1230,1233,1234,1237],{},[226,1223,1224],{},"Unsaved text."," While the page shows a render of an unsaved buffer, the pill reads ",[215,1227,1228],{},"Live · unsaved buffer",", and a render that differs from its golden says ",[215,1231,1232],{},"Δ differs from golden · unsaved",". Save, and the pill returns to ",[215,1235,1236],{},"Live · watching …",". Close the file without saving, and the preview returns to the text on disk.",[223,1239,1240,1243],{},[226,1241,1242],{},"New files."," A file that exists only in your editor, never saved, can be read by the kit, but it isn't listed as a new sample until you save it.",[223,1245,1246,1249,1250,1253,1254,1257,1258,1261],{},[226,1247,1248],{},"Writes use the files on disk."," Accept is off while the render uses unsaved text, and the Diff tab says ",[215,1251,1252],{},"This render uses unsaved editor text; save it first."," Save to samples.yaml refuses while ",[215,1255,1256],{},"samples.yaml"," itself has unsaved changes in your editor: ",[215,1259,1260],{},"samples.yaml has unsaved changes in your editor; save it first",". A golden, or a saved data edit, never holds text you haven't saved.",[223,1263,1264,1267,1268,1271,1272,1274,1275,1278],{},[226,1265,1266],{},"A typed kit."," ",[215,1269,1270],{},"lttr lsp -studio"," started inside a kit directory that ",[215,1273,429],{}," describes serves no studio. The editor shows ",[215,1276,1277],{},"lttr studio: this kit binds Go types: run your app's studio program with lsp -studio",", and the language server runs on.",[223,1280,1281,1284,1285,1278],{},[226,1282,1283],{},"A busy port."," If the studio cannot start, the editor shows why, such as ",[215,1286,1287],{},"lttr studio: listen tcp 127.0.0.1:7070: bind: address already in use",[223,1289,1290,1298,1299,1301,1302,1305,1306,1309],{},[226,1291,1292,302,1295],{},[215,1293,1294],{},"-editor",[215,1296,1297],{},"-send-to"," work as for ",[215,1300,494],{},", and are checked only with ",[215,1303,1304],{},"-studio",": a bad ",[215,1307,1308],{},"LTTR_SMTP_ADDR"," never stops the language server itself.",[211,1311,1312,1313,1316],{},"The studio shows no \"Rendering…\" cue while a buffer rebuilds. At a 150 ms debounce and a build of about 40 ms, it would flicker on every keystroke. The pill and the ",[215,1314,1315],{},"● updated"," cue already say that the preview follows the buffer.",[321,1318,1320],{"id":1319},"vs-code","VS Code",[211,1322,1323,1324,1327,1328,1331],{},"VS Code needs an extension to run a language server it doesn't know. ",[226,1325,1326],{},"Generic LSP Client (v2)",", extension ID ",[215,1329,1330],{},"zsol.vscode-glspc",", runs any server from your settings. These steps were checked against its version 0.2.1:",[435,1333,1335],{"className":437,"code":1334,"filename":439,"language":440,"meta":441,"style":441},"code --install-extension zsol.vscode-glspc\n",[215,1336,1337],{"__ignoreMap":441},[445,1338,1339,1341,1344],{"class":447,"line":448},[445,1340,215],{"class":451},[445,1342,1343],{"class":607}," --install-extension",[445,1345,1346],{"class":455}," zsol.vscode-glspc\n",[211,1348,1349],{},"Then, in the workspace's settings:",[435,1351,1356],{"className":1352,"code":1353,"filename":1354,"language":1355,"meta":441,"style":441},"language-json shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark","{\n  \"glspc.server.command\": \"lttr\",\n  \"glspc.server.commandArguments\": [\"lsp\"],\n  \"glspc.server.languageId\": [\"markdown\"]\n}\n",".vscode\u002Fsettings.json","json",[215,1357,1358,1363,1378,1392,1405],{"__ignoreMap":441},[445,1359,1360],{"class":447,"line":448},[445,1361,1362],{"class":622},"{\n",[445,1364,1365,1369,1372,1375],{"class":447,"line":611},[445,1366,1368],{"class":1367},"stmaP","  \"glspc.server.command\"",[445,1370,1371],{"class":622},": ",[445,1373,1374],{"class":455},"\"lttr\"",[445,1376,1377],{"class":622},",\n",[445,1379,1380,1383,1386,1389],{"class":447,"line":647},[445,1381,1382],{"class":1367},"  \"glspc.server.commandArguments\"",[445,1384,1385],{"class":622},": [",[445,1387,1388],{"class":455},"\"lsp\"",[445,1390,1391],{"class":622},"],\n",[445,1393,1394,1397,1399,1402],{"class":447,"line":654},[445,1395,1396],{"class":1367},"  \"glspc.server.languageId\"",[445,1398,1385],{"class":622},[445,1400,1401],{"class":455},"\"markdown\"",[445,1403,1404],{"class":622},"]\n",[445,1406,1407],{"class":447,"line":696},[445,1408,1409],{"class":622},"}\n",[211,1411,1412],{},"For a typed app, run its studio program instead:",[435,1414,1416],{"className":1352,"code":1415,"filename":1354,"language":1355,"meta":441,"style":441},"{\n  \"glspc.server.command\": \"go\",\n  \"glspc.server.commandArguments\": [\"run\", \".\u002Fexamples\u002Ftutorial\u002Fcmd\u002Femaildev\", \"lsp\"],\n  \"glspc.server.languageId\": [\"markdown\"]\n}\n",[215,1417,1418,1422,1433,1453,1463],{"__ignoreMap":441},[445,1419,1420],{"class":447,"line":448},[445,1421,1362],{"class":622},[445,1423,1424,1426,1428,1431],{"class":447,"line":611},[445,1425,1368],{"class":1367},[445,1427,1371],{"class":622},[445,1429,1430],{"class":455},"\"go\"",[445,1432,1377],{"class":622},[445,1434,1435,1437,1439,1442,1444,1447,1449,1451],{"class":447,"line":647},[445,1436,1382],{"class":1367},[445,1438,1385],{"class":622},[445,1440,1441],{"class":455},"\"run\"",[445,1443,365],{"class":622},[445,1445,1446],{"class":455},"\".\u002Fexamples\u002Ftutorial\u002Fcmd\u002Femaildev\"",[445,1448,365],{"class":622},[445,1450,1388],{"class":455},[445,1452,1391],{"class":622},[445,1454,1455,1457,1459,1461],{"class":447,"line":654},[445,1456,1396],{"class":1367},[445,1458,1385],{"class":622},[445,1460,1401],{"class":455},[445,1462,1404],{"class":622},[445,1464,1465],{"class":447,"line":696},[445,1466,1409],{"class":622},[220,1468,1469,1478,1488,1498,1522],{},[223,1470,1471,1474,1475,1477],{},[226,1472,1473],{},"Open the module root."," The extension starts the server in the window's first workspace folder, which is where ",[215,1476,390],{}," needs to run.",[223,1479,1480,1483,1484,309,1486,236],{},[226,1481,1482],{},"One server per window."," The extension runs one server, so a window uses either ",[215,1485,374],{},[215,1487,390],{},[223,1489,1490,1493,1494,1497],{},[226,1491,1492],{},"Restarts."," A change to these settings restarts the server. ",[226,1495,1496],{},"Generic LSP Client: Restart server"," in the command palette does it by hand, after a Go change, say.",[223,1499,1500,1503,1504,1371,1507,1510,1511,302,1513,1515,1516,1518,1519,236],{},[226,1501,1502],{},"Kit files."," A kit's problems show in the Problems panel whatever the list says. For completion inside kit files too, add their language IDs to ",[215,1505,1506],{},"glspc.server.languageId",[215,1508,1509],{},"yaml"," for ",[215,1512,79],{},[215,1514,301],{},", and for ",[215,1517,235],{}," the ID the Change Language Mode picker shows. A file whose extension VS Code doesn't know is ",[215,1520,1521],{},"plaintext",[223,1523,1524,1527,1528,1531,1532,1535,1536,1539,1540,1542,1543,236],{},[226,1525,1526],{},"Troubleshooting."," The server's log is in the ",[226,1529,1530],{},"Generic LSP Client"," output channel. ",[215,1533,1534],{},"\"glspc.trace.server\": \"verbose\""," adds every message. If the server doesn't start, give ",[215,1537,1538],{},"glspc.server.command"," the absolute path of ",[215,1541,330],{},", such as the output of ",[215,1544,1545],{},"command -v lttr",[211,1547,1548,1549,1551,1552,236],{},"Add ",[215,1550,1304],{}," to the arguments to preview as you type: ",[215,1553,1554],{},"[\"lsp\", \"-studio\", \"localhost:7070\"]",[321,1556,1558],{"id":1557},"neovim","Neovim",[211,1560,1561,1562,1565,1566,1569,1570,469],{},"Neovim has an LSP client built in. On ",[226,1563,1564],{},"Neovim 0.11 and later",", define the server with ",[215,1567,1568],{},"vim.lsp.config"," and turn it on with ",[215,1571,1572],{},"vim.lsp.enable",[435,1574,1579],{"className":1575,"code":1576,"filename":1577,"language":1578,"meta":441,"style":441},"language-lua shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark","vim.lsp.config('lttr', {\n  cmd = { 'lttr', 'lsp' },\n  filetypes = { 'markdown' },\n  root_markers = { 'go.mod', '.git' },\n})\nvim.lsp.enable('lttr')\n","init.lua","lua",[215,1580,1581,1603,1625,1639,1658,1663],{"__ignoreMap":441},[445,1582,1583,1586,1589,1591,1594,1597,1600],{"class":447,"line":448},[445,1584,1585],{"class":622},"vim.",[445,1587,400],{"class":1588},"sQJpg",[445,1590,236],{"class":622},[445,1592,1593],{"class":607},"config",[445,1595,1596],{"class":622},"(",[445,1598,1599],{"class":455},"'lttr'",[445,1601,1602],{"class":622},", {\n",[445,1604,1605,1608,1612,1615,1617,1619,1622],{"class":447,"line":611},[445,1606,1607],{"class":622},"  cmd ",[445,1609,1611],{"class":1610},"s1Q0q","=",[445,1613,1614],{"class":622}," { ",[445,1616,1599],{"class":455},[445,1618,365],{"class":622},[445,1620,1621],{"class":455},"'lsp' ",[445,1623,1624],{"class":622},"},\n",[445,1626,1627,1630,1632,1634,1637],{"class":447,"line":647},[445,1628,1629],{"class":622},"  filetypes ",[445,1631,1611],{"class":1610},[445,1633,1614],{"class":622},[445,1635,1636],{"class":455},"'markdown' ",[445,1638,1624],{"class":622},[445,1640,1641,1644,1646,1648,1651,1653,1656],{"class":447,"line":654},[445,1642,1643],{"class":622},"  root_markers ",[445,1645,1611],{"class":1610},[445,1647,1614],{"class":622},[445,1649,1650],{"class":455},"'go.mod'",[445,1652,365],{"class":622},[445,1654,1655],{"class":455},"'.git' ",[445,1657,1624],{"class":622},[445,1659,1660],{"class":447,"line":696},[445,1661,1662],{"class":622},"})\n",[445,1664,1665,1667,1669,1671,1674,1676,1678],{"class":447,"line":737},[445,1666,1585],{"class":622},[445,1668,400],{"class":1588},[445,1670,236],{"class":622},[445,1672,1673],{"class":607},"enable",[445,1675,1596],{"class":622},[445,1677,1599],{"class":455},[445,1679,880],{"class":622},[211,1681,1682,1683,469],{},"For a typed app, start its studio program in the module root with ",[215,1684,1685],{},"cmd_cwd",[435,1687,1689],{"className":1575,"code":1688,"filename":1577,"language":1578,"meta":441,"style":441},"vim.lsp.config('emaildev', {\n  cmd = { 'go', 'run', '.\u002Fexamples\u002Ftutorial\u002Fcmd\u002Femaildev', 'lsp' },\n  cmd_cwd = '\u002Fpath\u002Fto\u002Fyour\u002Fmodule',\n  filetypes = { 'markdown' },\n  root_markers = { 'go.mod' },\n})\nvim.lsp.enable('emaildev')\n",[215,1690,1691,1708,1735,1747,1759,1772,1776],{"__ignoreMap":441},[445,1692,1693,1695,1697,1699,1701,1703,1706],{"class":447,"line":448},[445,1694,1585],{"class":622},[445,1696,400],{"class":1588},[445,1698,236],{"class":622},[445,1700,1593],{"class":607},[445,1702,1596],{"class":622},[445,1704,1705],{"class":455},"'emaildev'",[445,1707,1602],{"class":622},[445,1709,1710,1712,1714,1716,1719,1721,1724,1726,1729,1731,1733],{"class":447,"line":611},[445,1711,1607],{"class":622},[445,1713,1611],{"class":1610},[445,1715,1614],{"class":622},[445,1717,1718],{"class":455},"'go'",[445,1720,365],{"class":622},[445,1722,1723],{"class":455},"'run'",[445,1725,365],{"class":622},[445,1727,1728],{"class":455},"'.\u002Fexamples\u002Ftutorial\u002Fcmd\u002Femaildev'",[445,1730,365],{"class":622},[445,1732,1621],{"class":455},[445,1734,1624],{"class":622},[445,1736,1737,1740,1742,1745],{"class":447,"line":647},[445,1738,1739],{"class":622},"  cmd_cwd ",[445,1741,1611],{"class":1610},[445,1743,1744],{"class":455}," '\u002Fpath\u002Fto\u002Fyour\u002Fmodule'",[445,1746,1377],{"class":622},[445,1748,1749,1751,1753,1755,1757],{"class":447,"line":654},[445,1750,1629],{"class":622},[445,1752,1611],{"class":1610},[445,1754,1614],{"class":622},[445,1756,1636],{"class":455},[445,1758,1624],{"class":622},[445,1760,1761,1763,1765,1767,1770],{"class":447,"line":696},[445,1762,1643],{"class":622},[445,1764,1611],{"class":1610},[445,1766,1614],{"class":622},[445,1768,1769],{"class":455},"'go.mod' ",[445,1771,1624],{"class":622},[445,1773,1774],{"class":447,"line":737},[445,1775,1662],{"class":622},[445,1777,1778,1780,1782,1784,1786,1788,1790],{"class":447,"line":746},[445,1779,1585],{"class":622},[445,1781,400],{"class":1588},[445,1783,236],{"class":622},[445,1785,1673],{"class":607},[445,1787,1596],{"class":622},[445,1789,1705],{"class":455},[445,1791,880],{"class":622},[211,1793,1794],{},"Enable one of the two per project, not both, or every Markdown file gets two servers.",[211,1796,1797,1798,1801,1802,1805,1806,469],{},"On ",[226,1799,1800],{},"Neovim 0.10",", start the server from a ",[215,1803,1804],{},"FileType"," autocommand with ",[215,1807,1808],{},"vim.lsp.start",[435,1810,1812],{"className":1575,"code":1811,"filename":1577,"language":1578,"meta":441,"style":441},"vim.api.nvim_create_autocmd('FileType', {\n  pattern = 'markdown',\n  callback = function(ev)\n    vim.lsp.start({\n      name = 'lttr',\n      cmd = { 'lttr', 'lsp' },\n      root_dir = vim.fs.root(ev.buf, { 'go.mod', '.git' }),\n    })\n  end,\n})\n",[215,1813,1814,1833,1845,1860,1875,1887,1904,1940,1945,1952],{"__ignoreMap":441},[445,1815,1816,1818,1821,1823,1826,1828,1831],{"class":447,"line":448},[445,1817,1585],{"class":622},[445,1819,1820],{"class":1588},"api",[445,1822,236],{"class":622},[445,1824,1825],{"class":607},"nvim_create_autocmd",[445,1827,1596],{"class":622},[445,1829,1830],{"class":455},"'FileType'",[445,1832,1602],{"class":622},[445,1834,1835,1838,1840,1843],{"class":447,"line":611},[445,1836,1837],{"class":622},"  pattern ",[445,1839,1611],{"class":1610},[445,1841,1842],{"class":455}," 'markdown'",[445,1844,1377],{"class":622},[445,1846,1847,1851,1854,1857],{"class":447,"line":647},[445,1848,1850],{"class":1849},"sPmw6","  callback",[445,1852,1853],{"class":1610}," =",[445,1855,1856],{"class":1610}," function",[445,1858,1859],{"class":622},"(ev)\n",[445,1861,1862,1865,1867,1869,1872],{"class":447,"line":654},[445,1863,1864],{"class":622},"    vim.",[445,1866,400],{"class":1588},[445,1868,236],{"class":622},[445,1870,1871],{"class":607},"start",[445,1873,1874],{"class":622},"({\n",[445,1876,1877,1880,1882,1885],{"class":447,"line":696},[445,1878,1879],{"class":622},"      name ",[445,1881,1611],{"class":1610},[445,1883,1884],{"class":455}," 'lttr'",[445,1886,1377],{"class":622},[445,1888,1889,1892,1894,1896,1898,1900,1902],{"class":447,"line":737},[445,1890,1891],{"class":622},"      cmd ",[445,1893,1611],{"class":1610},[445,1895,1614],{"class":622},[445,1897,1599],{"class":455},[445,1899,365],{"class":622},[445,1901,1621],{"class":455},[445,1903,1624],{"class":622},[445,1905,1906,1909,1911,1914,1917,1919,1922,1925,1928,1931,1933,1935,1937],{"class":447,"line":746},[445,1907,1908],{"class":622},"      root_dir ",[445,1910,1611],{"class":1610},[445,1912,1913],{"class":622}," vim.",[445,1915,1916],{"class":1588},"fs",[445,1918,236],{"class":622},[445,1920,1921],{"class":607},"root",[445,1923,1924],{"class":622},"(ev.",[445,1926,1927],{"class":1588},"buf",[445,1929,1930],{"class":622},", { ",[445,1932,1650],{"class":455},[445,1934,365],{"class":622},[445,1936,1655],{"class":455},[445,1938,1939],{"class":622},"}),\n",[445,1941,1942],{"class":447,"line":752},[445,1943,1944],{"class":622},"    })\n",[445,1946,1947,1950],{"class":447,"line":758},[445,1948,1949],{"class":1610},"  end",[445,1951,1377],{"class":622},[445,1953,1954],{"class":447,"line":763},[445,1955,1662],{"class":622},[211,1957,1958,1961,1962,1965,1966,1969],{},[215,1959,1960],{},"vim.fs.root"," is new in 0.10. On ",[226,1963,1964],{},"0.8 and 0.9",", write ",[215,1967,1968],{},"root_dir = vim.fs.dirname(vim.fs.find({ 'go.mod', '.git' }, { upward = true })[1])"," instead.",[220,1971,1972,1985,2014,2030],{},[223,1973,1974,1977,1978,479,1981,1984],{},[226,1975,1976],{},"Check it attached"," with ",[215,1979,1980],{},":checkhealth vim.lsp",[215,1982,1983],{},":checkhealth lsp"," before 0.11).",[223,1986,1987,1267,1990,1993,1994,1997,1998,2001,2002,2005,2006,2009,2010,2013],{},[226,1988,1989],{},"Use it.",[215,1991,1992],{},"K"," hovers by default in Neovim 0.10+; on earlier versions, map ",[215,1995,1996],{},"vim.lsp.buf.hover()",". The other defaults: ",[215,1999,2000],{},"CTRL-]"," goes to the definition, and ",[215,2003,2004],{},"CTRL-X CTRL-O"," completes in insert mode. On 0.11, ",[215,2007,2008],{},"gra"," opens the code actions, where the quick fixes are; on earlier versions, map ",[215,2011,2012],{},"vim.lsp.buf.code_action()"," yourself. Problems show as diagnostics.",[223,2015,2016,2018,2019,479,2022,2025,2026,1510,2028,236],{},[226,2017,1502],{}," For completion in kit templates, add the filetype Neovim gives them to ",[215,2020,2021],{},"filetypes",[215,2023,2024],{},":set filetype?"," in one shows it), and ",[215,2027,1509],{},[215,2029,79],{},[223,2031,2032,2035,2036,2038,2039,2041,2042,302,2044,2046,2047,2049,2050,236],{},[226,2033,2034],{},"The working directory"," is Neovim's own unless you set ",[215,2037,1685],{},". It matters for ",[215,2040,390],{},", for relative ",[215,2043,468],{},[215,2045,487],{}," paths, and for ",[215,2048,1304],{}," without ",[215,2051,468],{},[211,2053,1548,2054,2056,2057,2060,2061,236],{},[215,2055,1304],{}," to ",[215,2058,2059],{},"cmd"," to preview as you type: ",[215,2062,2063],{},"cmd = { 'lttr', 'lsp', '-studio', 'localhost:7070' }",[321,2065,2067],{"id":2066},"zed","Zed",[211,2069,2070,2073,2074,2076,2077,2083],{},[226,2071,2072],{},"Zed needs an extension."," It starts only language servers that Zed itself or an extension registers, and its settings cannot add a new one: an ",[215,2075,400],{}," entry for a name no extension registers is not allowed. Zed's own ",[393,2078,2082],{"href":2079,"rel":2080},"https:\u002F\u002Fzed.dev\u002Fdocs\u002Fextensions\u002Flanguages#language-servers",[2081],"nofollow","extension docs"," say a language server needs a few lines of Rust, and a Zed maintainer confirmed in April 2026 that settings alone won't do (zed-industries\u002Fzed issue #52653). There is no published lttr extension.",[211,2085,2086,2087,2090],{},"The shortest route is a local dev extension of three files. It needs Rust installed with rustup, which lets Zed add the ",[215,2088,2089],{},"wasm32-wasip2"," target it builds extensions for.",[435,2092,2097],{"className":2093,"code":2094,"filename":2095,"language":2096,"meta":441,"style":441},"language-toml shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark","id = \"lttr-lsp\"\nname = \"lttr language server\"\nversion = \"0.0.1\"\nschema_version = 1\nauthors = [\"You \u003Cyou@example.com>\"]\ndescription = \"Runs lttr lsp for Markdown\"\nrepository = \"https:\u002F\u002Fgithub.com\u002Fyou\u002Fzed-lttr-lsp\"\n\n[language_servers.lttr]\nname = \"lttr\"\nlanguages = [\"Markdown\"]\n","extension.toml","toml",[215,2098,2099,2107,2115,2123,2131,2141,2149,2157,2161,2175,2182],{"__ignoreMap":441},[445,2100,2101,2104],{"class":447,"line":448},[445,2102,2103],{"class":622},"id = ",[445,2105,2106],{"class":455},"\"lttr-lsp\"\n",[445,2108,2109,2112],{"class":447,"line":611},[445,2110,2111],{"class":622},"name = ",[445,2113,2114],{"class":455},"\"lttr language server\"\n",[445,2116,2117,2120],{"class":447,"line":647},[445,2118,2119],{"class":622},"version = ",[445,2121,2122],{"class":455},"\"0.0.1\"\n",[445,2124,2125,2128],{"class":447,"line":654},[445,2126,2127],{"class":622},"schema_version = ",[445,2129,2130],{"class":607},"1\n",[445,2132,2133,2136,2139],{"class":447,"line":696},[445,2134,2135],{"class":622},"authors = [",[445,2137,2138],{"class":455},"\"You \u003Cyou@example.com>\"",[445,2140,1404],{"class":622},[445,2142,2143,2146],{"class":447,"line":737},[445,2144,2145],{"class":622},"description = ",[445,2147,2148],{"class":455},"\"Runs lttr lsp for Markdown\"\n",[445,2150,2151,2154],{"class":447,"line":746},[445,2152,2153],{"class":622},"repository = ",[445,2155,2156],{"class":455},"\"https:\u002F\u002Fgithub.com\u002Fyou\u002Fzed-lttr-lsp\"\n",[445,2158,2159],{"class":447,"line":752},[445,2160,651],{"emptyLinePlaceholder":650},[445,2162,2163,2166,2169,2171,2173],{"class":447,"line":758},[445,2164,2165],{"class":622},"[",[445,2167,2168],{"class":451},"language_servers",[445,2170,236],{"class":622},[445,2172,330],{"class":451},[445,2174,1404],{"class":622},[445,2176,2177,2179],{"class":447,"line":763},[445,2178,2111],{"class":622},[445,2180,2181],{"class":455},"\"lttr\"\n",[445,2183,2184,2187,2190],{"class":447,"line":769},[445,2185,2186],{"class":622},"languages = [",[445,2188,2189],{"class":455},"\"Markdown\"",[445,2191,1404],{"class":622},[435,2193,2196],{"className":2093,"code":2194,"filename":2195,"language":2096,"meta":441,"style":441},"[package]\nname = \"lttr-lsp\"\nversion = \"0.0.1\"\nedition = \"2021\"\n\n[lib]\ncrate-type = [\"cdylib\"]\n\n[dependencies]\nzed_extension_api = \"0.7.0\"\n","Cargo.toml",[215,2197,2198,2207,2213,2219,2227,2231,2240,2250,2254,2263],{"__ignoreMap":441},[445,2199,2200,2202,2205],{"class":447,"line":448},[445,2201,2165],{"class":622},[445,2203,2204],{"class":451},"package",[445,2206,1404],{"class":622},[445,2208,2209,2211],{"class":447,"line":611},[445,2210,2111],{"class":622},[445,2212,2106],{"class":455},[445,2214,2215,2217],{"class":447,"line":647},[445,2216,2119],{"class":622},[445,2218,2122],{"class":455},[445,2220,2221,2224],{"class":447,"line":654},[445,2222,2223],{"class":622},"edition = ",[445,2225,2226],{"class":455},"\"2021\"\n",[445,2228,2229],{"class":447,"line":696},[445,2230,651],{"emptyLinePlaceholder":650},[445,2232,2233,2235,2238],{"class":447,"line":737},[445,2234,2165],{"class":622},[445,2236,2237],{"class":451},"lib",[445,2239,1404],{"class":622},[445,2241,2242,2245,2248],{"class":447,"line":746},[445,2243,2244],{"class":622},"crate-type = [",[445,2246,2247],{"class":455},"\"cdylib\"",[445,2249,1404],{"class":622},[445,2251,2252],{"class":447,"line":752},[445,2253,651],{"emptyLinePlaceholder":650},[445,2255,2256,2258,2261],{"class":447,"line":758},[445,2257,2165],{"class":622},[445,2259,2260],{"class":451},"dependencies",[445,2262,1404],{"class":622},[445,2264,2265,2268],{"class":447,"line":763},[445,2266,2267],{"class":622},"zed_extension_api = ",[445,2269,2270],{"class":455},"\"0.7.0\"\n",[435,2272,2277],{"className":2273,"code":2274,"filename":2275,"language":2276,"meta":441,"style":441},"language-rust shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark","use zed_extension_api::{self as zed, settings::LspSettings};\n\nstruct LttrExtension;\n\nimpl zed::Extension for LttrExtension {\n    fn new() -> Self {\n        LttrExtension\n    }\n\n    \u002F\u002F Starts `lttr lsp`, or the command in the \"lsp\" → \"lttr\" → \"binary\"\n    \u002F\u002F setting: an app's own studio program, for example.\n    fn language_server_command(\n        &mut self,\n        id: &zed::LanguageServerId,\n        worktree: &zed::Worktree,\n    ) -> zed::Result\u003Czed::Command> {\n        let binary = LspSettings::for_worktree(id.as_ref(), worktree)\n            .ok()\n            .and_then(|s| s.binary);\n        let command = binary\n            .as_ref()\n            .and_then(|b| b.path.clone())\n            .or_else(|| worktree.which(\"lttr\"))\n            .ok_or(\"lttr is not on your PATH: go install github.com\u002Fsulv-io\u002Flttr\u002Fcmd\u002Flttr@latest\")?;\n        let args = binary\n            .as_ref()\n            .and_then(|b| b.arguments.clone())\n            .unwrap_or_else(|| vec![\"lsp\".into()]);\n        let env = binary\n            .and_then(|b| b.env)\n            .map(|e| e.into_iter().collect())\n            .unwrap_or_default();\n        Ok(zed::Command { command, args, env })\n    }\n}\n\nzed::register_extension!(LttrExtension);\n","src\u002Flib.rs","rust",[215,2278,2279,2312,2316,2327,2331,2351,2370,2375,2380,2384,2390,2395,2405,2415,2434,2452,2477,2506,2517,2541,2553,2561,2592,2619,2639,2650,2659,2687,2714,2726,2748,2783,2794,2811,2816,2821,2826],{"__ignoreMap":441},[445,2280,2281,2284,2287,2289,2292,2295,2298,2301,2304,2306,2309],{"class":447,"line":448},[445,2282,2283],{"class":1610},"use",[445,2285,2286],{"class":451}," zed_extension_api",[445,2288,255],{"class":1610},[445,2290,2291],{"class":622},"{",[445,2293,2294],{"class":607},"self",[445,2296,2297],{"class":1610}," as",[445,2299,2300],{"class":622}," zed, ",[445,2302,2303],{"class":451},"settings",[445,2305,255],{"class":1610},[445,2307,2308],{"class":451},"LspSettings",[445,2310,2311],{"class":622},"};\n",[445,2313,2314],{"class":447,"line":611},[445,2315,651],{"emptyLinePlaceholder":650},[445,2317,2318,2321,2324],{"class":447,"line":647},[445,2319,2320],{"class":1610},"struct",[445,2322,2323],{"class":451}," LttrExtension",[445,2325,2326],{"class":622},";\n",[445,2328,2329],{"class":447,"line":654},[445,2330,651],{"emptyLinePlaceholder":650},[445,2332,2333,2336,2339,2341,2344,2346,2348],{"class":447,"line":696},[445,2334,2335],{"class":1610},"impl",[445,2337,2338],{"class":451}," zed",[445,2340,255],{"class":1610},[445,2342,2343],{"class":451},"Extension",[445,2345,672],{"class":1610},[445,2347,2323],{"class":451},[445,2349,2350],{"class":622}," {\n",[445,2352,2353,2356,2359,2362,2365,2368],{"class":447,"line":737},[445,2354,2355],{"class":1610},"    fn",[445,2357,2358],{"class":1849}," new",[445,2360,2361],{"class":622},"() ",[445,2363,2364],{"class":1610},"->",[445,2366,2367],{"class":607}," Self",[445,2369,2350],{"class":622},[445,2371,2372],{"class":447,"line":746},[445,2373,2374],{"class":451},"        LttrExtension\n",[445,2376,2377],{"class":447,"line":752},[445,2378,2379],{"class":622},"    }\n",[445,2381,2382],{"class":447,"line":758},[445,2383,651],{"emptyLinePlaceholder":650},[445,2385,2386],{"class":447,"line":763},[445,2387,2389],{"class":2388},"sBq4M","    \u002F\u002F Starts `lttr lsp`, or the command in the \"lsp\" → \"lttr\" → \"binary\"\n",[445,2391,2392],{"class":447,"line":769},[445,2393,2394],{"class":2388},"    \u002F\u002F setting: an app's own studio program, for example.\n",[445,2396,2397,2399,2402],{"class":447,"line":775},[445,2398,2355],{"class":1610},[445,2400,2401],{"class":1849}," language_server_command",[445,2403,2404],{"class":622},"(\n",[445,2406,2407,2410,2413],{"class":447,"line":781},[445,2408,2409],{"class":1610},"        &mut",[445,2411,2412],{"class":607}," self",[445,2414,1377],{"class":622},[445,2416,2417,2420,2422,2425,2427,2429,2432],{"class":447,"line":786},[445,2418,2419],{"class":622},"        id",[445,2421,469],{"class":1610},[445,2423,2424],{"class":1610}," &",[445,2426,2066],{"class":451},[445,2428,255],{"class":1610},[445,2430,2431],{"class":451},"LanguageServerId",[445,2433,1377],{"class":622},[445,2435,2436,2439,2441,2443,2445,2447,2450],{"class":447,"line":801},[445,2437,2438],{"class":622},"        worktree",[445,2440,469],{"class":1610},[445,2442,2424],{"class":1610},[445,2444,2066],{"class":451},[445,2446,255],{"class":1610},[445,2448,2449],{"class":451},"Worktree",[445,2451,1377],{"class":622},[445,2453,2454,2457,2459,2461,2463,2466,2469,2471,2474],{"class":447,"line":811},[445,2455,2456],{"class":622},"    ) ",[445,2458,2364],{"class":1610},[445,2460,2338],{"class":451},[445,2462,255],{"class":1610},[445,2464,2465],{"class":451},"Result",[445,2467,2468],{"class":622},"\u003Czed",[445,2470,255],{"class":1610},[445,2472,2473],{"class":451},"Command",[445,2475,2476],{"class":622},"> {\n",[445,2478,2479,2482,2485,2487,2490,2492,2495,2498,2500,2503],{"class":447,"line":816},[445,2480,2481],{"class":1610},"        let",[445,2483,2484],{"class":622}," binary ",[445,2486,1611],{"class":1610},[445,2488,2489],{"class":451}," LspSettings",[445,2491,255],{"class":1610},[445,2493,2494],{"class":1849},"for_worktree",[445,2496,2497],{"class":622},"(id",[445,2499,236],{"class":1610},[445,2501,2502],{"class":1849},"as_ref",[445,2504,2505],{"class":622},"(), worktree)\n",[445,2507,2508,2511,2514],{"class":447,"line":822},[445,2509,2510],{"class":1610},"            .",[445,2512,2513],{"class":1849},"ok",[445,2515,2516],{"class":622},"()\n",[445,2518,2519,2521,2524,2526,2529,2531,2533,2536,2538],{"class":447,"line":831},[445,2520,2510],{"class":1610},[445,2522,2523],{"class":1849},"and_then",[445,2525,1596],{"class":622},[445,2527,2528],{"class":1610},"|",[445,2530,792],{"class":622},[445,2532,2528],{"class":1610},[445,2534,2535],{"class":622}," s",[445,2537,236],{"class":1610},[445,2539,2540],{"class":622},"binary);\n",[445,2542,2543,2545,2548,2550],{"class":447,"line":845},[445,2544,2481],{"class":1610},[445,2546,2547],{"class":622}," command ",[445,2549,1611],{"class":1610},[445,2551,2552],{"class":622}," binary\n",[445,2554,2555,2557,2559],{"class":447,"line":851},[445,2556,2510],{"class":1610},[445,2558,2502],{"class":1849},[445,2560,2516],{"class":622},[445,2562,2563,2565,2567,2569,2571,2574,2576,2579,2581,2584,2586,2589],{"class":447,"line":883},[445,2564,2510],{"class":1610},[445,2566,2523],{"class":1849},[445,2568,1596],{"class":622},[445,2570,2528],{"class":1610},[445,2572,2573],{"class":622},"b",[445,2575,2528],{"class":1610},[445,2577,2578],{"class":622}," b",[445,2580,236],{"class":1610},[445,2582,2583],{"class":622},"path",[445,2585,236],{"class":1610},[445,2587,2588],{"class":1849},"clone",[445,2590,2591],{"class":622},"())\n",[445,2593,2594,2596,2599,2601,2604,2607,2609,2612,2614,2616],{"class":447,"line":892},[445,2595,2510],{"class":1610},[445,2597,2598],{"class":1849},"or_else",[445,2600,1596],{"class":622},[445,2602,2603],{"class":1610},"||",[445,2605,2606],{"class":622}," worktree",[445,2608,236],{"class":1610},[445,2610,2611],{"class":1849},"which",[445,2613,1596],{"class":622},[445,2615,1374],{"class":455},[445,2617,2618],{"class":622},"))\n",[445,2620,2621,2623,2626,2628,2631,2634,2637],{"class":447,"line":903},[445,2622,2510],{"class":1610},[445,2624,2625],{"class":1849},"ok_or",[445,2627,1596],{"class":622},[445,2629,2630],{"class":455},"\"lttr is not on your PATH: go install github.com\u002Fsulv-io\u002Flttr\u002Fcmd\u002Flttr@latest\"",[445,2632,2633],{"class":622},")",[445,2635,2636],{"class":1610},"?",[445,2638,2326],{"class":622},[445,2640,2641,2643,2646,2648],{"class":447,"line":909},[445,2642,2481],{"class":1610},[445,2644,2645],{"class":622}," args ",[445,2647,1611],{"class":1610},[445,2649,2552],{"class":622},[445,2651,2653,2655,2657],{"class":447,"line":2652},26,[445,2654,2510],{"class":1610},[445,2656,2502],{"class":1849},[445,2658,2516],{"class":622},[445,2660,2662,2664,2666,2668,2670,2672,2674,2676,2678,2681,2683,2685],{"class":447,"line":2661},27,[445,2663,2510],{"class":1610},[445,2665,2523],{"class":1849},[445,2667,1596],{"class":622},[445,2669,2528],{"class":1610},[445,2671,2573],{"class":622},[445,2673,2528],{"class":1610},[445,2675,2578],{"class":622},[445,2677,236],{"class":1610},[445,2679,2680],{"class":622},"arguments",[445,2682,236],{"class":1610},[445,2684,2588],{"class":1849},[445,2686,2591],{"class":622},[445,2688,2690,2692,2695,2697,2699,2702,2704,2706,2708,2711],{"class":447,"line":2689},28,[445,2691,2510],{"class":1610},[445,2693,2694],{"class":1849},"unwrap_or_else",[445,2696,1596],{"class":622},[445,2698,2603],{"class":1610},[445,2700,2701],{"class":1849}," vec!",[445,2703,2165],{"class":622},[445,2705,1388],{"class":455},[445,2707,236],{"class":1610},[445,2709,2710],{"class":1849},"into",[445,2712,2713],{"class":622},"()]);\n",[445,2715,2717,2719,2722,2724],{"class":447,"line":2716},29,[445,2718,2481],{"class":1610},[445,2720,2721],{"class":622}," env ",[445,2723,1611],{"class":1610},[445,2725,2552],{"class":622},[445,2727,2729,2731,2733,2735,2737,2739,2741,2743,2745],{"class":447,"line":2728},30,[445,2730,2510],{"class":1610},[445,2732,2523],{"class":1849},[445,2734,1596],{"class":622},[445,2736,2528],{"class":1610},[445,2738,2573],{"class":622},[445,2740,2528],{"class":1610},[445,2742,2578],{"class":622},[445,2744,236],{"class":1610},[445,2746,2747],{"class":622},"env)\n",[445,2749,2751,2753,2756,2758,2760,2763,2765,2768,2770,2773,2776,2778,2781],{"class":447,"line":2750},31,[445,2752,2510],{"class":1610},[445,2754,2755],{"class":1849},"map",[445,2757,1596],{"class":622},[445,2759,2528],{"class":1610},[445,2761,2762],{"class":622},"e",[445,2764,2528],{"class":1610},[445,2766,2767],{"class":622}," e",[445,2769,236],{"class":1610},[445,2771,2772],{"class":1849},"into_iter",[445,2774,2775],{"class":622},"()",[445,2777,236],{"class":1610},[445,2779,2780],{"class":1849},"collect",[445,2782,2591],{"class":622},[445,2784,2786,2788,2791],{"class":447,"line":2785},32,[445,2787,2510],{"class":1610},[445,2789,2790],{"class":1849},"unwrap_or_default",[445,2792,2793],{"class":622},"();\n",[445,2795,2797,2800,2802,2804,2806,2808],{"class":447,"line":2796},33,[445,2798,2799],{"class":451},"        Ok",[445,2801,1596],{"class":622},[445,2803,2066],{"class":451},[445,2805,255],{"class":1610},[445,2807,2473],{"class":451},[445,2809,2810],{"class":622}," { command, args, env })\n",[445,2812,2814],{"class":447,"line":2813},34,[445,2815,2379],{"class":622},[445,2817,2819],{"class":447,"line":2818},35,[445,2820,1409],{"class":622},[445,2822,2824],{"class":447,"line":2823},36,[445,2825,651],{"emptyLinePlaceholder":650},[445,2827,2829,2831,2833,2836,2838,2841],{"class":447,"line":2828},37,[445,2830,2066],{"class":451},[445,2832,255],{"class":1610},[445,2834,2835],{"class":1849},"register_extension!",[445,2837,1596],{"class":622},[445,2839,2840],{"class":451},"LttrExtension",[445,2842,2843],{"class":622},");\n",[211,2845,2846,2847,2850,2851,2854,2855,2858],{},"Put the three files in one directory, then run ",[226,2848,2849],{},"zed: install dev extension"," from the command palette (or ",[226,2852,2853],{},"Install Dev Extension"," on the Extensions page) and pick that directory. Open a Markdown file, and the server starts. Zed's log (",[226,2856,2857],{},"zed: open log",") shows why if it doesn't.",[211,2860,2861,2862,2864],{},"With the extension in place, Zed's ",[215,2863,400],{}," setting passes other arguments, or another program:",[435,2866,2869],{"className":1352,"code":2867,"filename":2868,"language":1355,"meta":441,"style":441},"{\n  \"lsp\": {\n    \"lttr\": {\n      \"binary\": {\n        \"arguments\": [\"lsp\", \"-studio\", \"localhost:7070\"]\n      }\n    }\n  }\n}\n","settings.json",[215,2870,2871,2875,2883,2890,2897,2918,2923,2927,2932],{"__ignoreMap":441},[445,2872,2873],{"class":447,"line":448},[445,2874,1362],{"class":622},[445,2876,2877,2880],{"class":447,"line":611},[445,2878,2879],{"class":1367},"  \"lsp\"",[445,2881,2882],{"class":622},": {\n",[445,2884,2885,2888],{"class":447,"line":647},[445,2886,2887],{"class":1367},"    \"lttr\"",[445,2889,2882],{"class":622},[445,2891,2892,2895],{"class":447,"line":654},[445,2893,2894],{"class":1367},"      \"binary\"",[445,2896,2882],{"class":622},[445,2898,2899,2902,2904,2906,2908,2911,2913,2916],{"class":447,"line":696},[445,2900,2901],{"class":1367},"        \"arguments\"",[445,2903,1385],{"class":622},[445,2905,1388],{"class":455},[445,2907,365],{"class":622},[445,2909,2910],{"class":455},"\"-studio\"",[445,2912,365],{"class":622},[445,2914,2915],{"class":455},"\"localhost:7070\"",[445,2917,1404],{"class":622},[445,2919,2920],{"class":447,"line":737},[445,2921,2922],{"class":622},"      }\n",[445,2924,2925],{"class":447,"line":746},[445,2926,2379],{"class":622},[445,2928,2929],{"class":447,"line":752},[445,2930,2931],{"class":622},"  }\n",[445,2933,2934],{"class":447,"line":758},[445,2935,1409],{"class":622},[211,2937,2938],{},"Zed doesn't document the working directory it starts a server in, so start a typed app's program through a shell that changes to the module root first:",[435,2940,2942],{"className":1352,"code":2941,"filename":2868,"language":1355,"meta":441,"style":441},"{\n  \"lsp\": {\n    \"lttr\": {\n      \"binary\": {\n        \"path\": \"\u002Fbin\u002Fsh\",\n        \"arguments\": [\"-c\", \"cd \u002Fpath\u002Fto\u002Fyour\u002Fmodule && exec go run .\u002Fexamples\u002Ftutorial\u002Fcmd\u002Femaildev lsp\"]\n      }\n    }\n  }\n}\n",[215,2943,2944,2948,2954,2960,2966,2978,2994,2998,3002,3006],{"__ignoreMap":441},[445,2945,2946],{"class":447,"line":448},[445,2947,1362],{"class":622},[445,2949,2950,2952],{"class":447,"line":611},[445,2951,2879],{"class":1367},[445,2953,2882],{"class":622},[445,2955,2956,2958],{"class":447,"line":647},[445,2957,2887],{"class":1367},[445,2959,2882],{"class":622},[445,2961,2962,2964],{"class":447,"line":654},[445,2963,2894],{"class":1367},[445,2965,2882],{"class":622},[445,2967,2968,2971,2973,2976],{"class":447,"line":696},[445,2969,2970],{"class":1367},"        \"path\"",[445,2972,1371],{"class":622},[445,2974,2975],{"class":455},"\"\u002Fbin\u002Fsh\"",[445,2977,1377],{"class":622},[445,2979,2980,2982,2984,2987,2989,2992],{"class":447,"line":737},[445,2981,2901],{"class":1367},[445,2983,1385],{"class":622},[445,2985,2986],{"class":455},"\"-c\"",[445,2988,365],{"class":622},[445,2990,2991],{"class":455},"\"cd \u002Fpath\u002Fto\u002Fyour\u002Fmodule && exec go run .\u002Fexamples\u002Ftutorial\u002Fcmd\u002Femaildev lsp\"",[445,2993,1404],{"class":622},[445,2995,2996],{"class":447,"line":746},[445,2997,2922],{"class":622},[445,2999,3000],{"class":447,"line":752},[445,3001,2379],{"class":622},[445,3003,3004],{"class":447,"line":758},[445,3005,2931],{"class":622},[445,3007,3008],{"class":447,"line":763},[445,3009,1409],{"class":622},[211,3011,3012,3013,3016],{},"The extension above builds against ",[215,3014,3015],{},"zed_extension_api"," 0.7.0, the latest release when this page was written. Markdown in Zed has no language server of its own, so nothing else competes for these files.",[321,3018,3020],{"id":3019},"next-steps","Next steps",[220,3022,3023,3038,3046],{},[223,3024,3025,3027,3028,3030,3031,3034,3035,236],{},[393,3026,144],{"href":145}," for the preview ",[215,3029,1304],{}," serves, and the ",[215,3032,3033],{},"studio"," library behind ",[215,3036,3037],{},"emaildev",[223,3039,3040,1510,3043,3045],{},[393,3041,139],{"href":3042},"\u002Ftooling\u002Fcli#run-the-language-server",[215,3044,374],{},"'s flags.",[223,3047,3048,3050],{},[393,3049,170],{"href":171},", whose tutorial kit binds a Go type.",[3052,3053,3054],"style",{},"html pre.shiki code .sSlKG, html code.shiki .sSlKG{--shiki-light:#702C00;--shiki-default:#702C00;--shiki-dark:#B392F0}html pre.shiki code .sRBGO, html code.shiki .sRBGO{--shiki-light:#032563;--shiki-default:#032563;--shiki-dark:#9ECBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sTl1q, html code.shiki .sTl1q{--shiki-light:#023B95;--shiki-default:#023B95;--shiki-dark:#79B8FF}html pre.shiki code .sihDN, html code.shiki .sihDN{--shiki-light:#0E1116;--shiki-default:#0E1116;--shiki-dark:#E1E4E8}html pre.shiki code .stmaP, html code.shiki .stmaP{--shiki-light:#024C1A;--shiki-default:#024C1A;--shiki-dark:#79B8FF}html pre.shiki code .sQJpg, html code.shiki .sQJpg{--shiki-light:#023B95;--shiki-default:#023B95;--shiki-dark:#B392F0}html pre.shiki code .s1Q0q, html code.shiki .s1Q0q{--shiki-light:#A0111F;--shiki-default:#A0111F;--shiki-dark:#F97583}html pre.shiki code .sPmw6, html code.shiki .sPmw6{--shiki-light:#622CBC;--shiki-default:#622CBC;--shiki-dark:#B392F0}html pre.shiki code .sBq4M, html code.shiki .sBq4M{--shiki-light:#66707B;--shiki-default:#66707B;--shiki-dark:#6A737D}",{"title":441,"searchDepth":611,"depth":611,"links":3056},[3057,3062,3063,3064,3065,3066],{"id":323,"depth":611,"text":324,"children":3058},[3059,3060,3061],{"id":433,"depth":647,"text":374},{"id":570,"depth":647,"text":390},{"id":927,"depth":647,"text":928},{"id":1136,"depth":611,"text":1137},{"id":1319,"depth":611,"text":1320},{"id":1557,"depth":611,"text":1558},{"id":2066,"depth":611,"text":2067},{"id":3019,"depth":611,"text":3020},"The lttr language server in VS Code, Neovim and Zed. Problems as you type, quick fixes, completion, hover and go to definition, which server to run for a kit or a typed app, .lttr\u002Fschema.json, and a studio that follows your unsaved buffers.","md",null,{},{"icon":152},{"title":149,"description":3067},"MAsQP_yDV3H-Pf8-trGazVrP_CCs4yIjrsvFFqovR5M",[3075,3077],{"title":144,"path":145,"stem":146,"description":3076,"icon":147,"children":-1},"lttr serve and the studio library. A live grid of every sample, a workbench with its problems, data, golden diff and test sends, the components page, the size budget, keyboard shortcuts, editor links, unsaved editor buffers and the security model.",{"title":154,"path":155,"stem":156,"description":3078,"icon":157,"children":-1},"make shoot, tools\u002Fshoot's flags, the contact sheet it builds, and why a horizontal scroll fails the run.",1790467464533]