You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ok better errors
* can do vars in jq
* wip
* great
* Add Jamie Pond attribution to footer
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Move editor integration section near top of README
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Use lspconfig for neovim LSP setup instead of vim.lsp.config
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Address review feedback: extract truncateStr helper, add FindBareRefs tests, fix example line number
- DRY up duplicated truncation logic into a UTF-8-safe truncateStr helper
- Add table-driven tests for FindBareRefs covering bare refs, wrapped refs, edge cases
- Fix incorrect line number in bare-variable-warning example comment (18 → 25)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix lint: remove unused maxLen parameter from truncateStr
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* wip
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+79-55Lines changed: 79 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,61 @@ make install
59
59
60
60
-----
61
61
62
+
## 🧠 Editor Integration (LSP)
63
+
64
+
Unlike other API clients, **yapi** ships with a **full LSP implementation** out of the box. Your editor becomes an intelligent API development environment with real-time validation, autocompletion, and inline execution.
65
+
66
+
### VS Code & Cursor
67
+
68
+
Install the official extension from [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=yapi.yapi-extension) or [Open VSX](https://open-vsx.org/extension/yapi/yapi-extension):
69
+
70
+
**Features:**
71
+
-**Run with `Cmd+Enter`** (Mac) or `Ctrl+Enter` (Windows/Linux) - execute requests without leaving your editor
72
+
-**Inline results panel** - see responses, headers, and timing right in VS Code
73
+
-**Real-time validation** - errors and warnings as you type
74
+
-**Intelligent autocompletion** - context-aware suggestions for keys, methods, and variables
75
+
-**Hover info** - hover over `${VAR}` to see environment variable status
76
+
77
+
The extension automatically detects `.yapi.yml` files and activates the language server. No configuration needed.
78
+
79
+
### Neovim (Native Plugin)
80
+
81
+
**yapi** was built with Neovim in mind. First-class support via `lua/yapi_nvim`:
82
+
83
+
```lua
84
+
-- lazy.nvim
85
+
{
86
+
dir="~/path/to/yapi/lua/yapi_nvim",
87
+
config=function()
88
+
require("yapi_nvim").setup({
89
+
lsp=true, -- Enables the yapi Language Server
90
+
pretty=true, -- Uses the TUI renderer in the popup
91
+
})
92
+
end
93
+
}
94
+
```
95
+
96
+
Commands:
97
+
-`:YapiRun` - Execute the current buffer
98
+
-`:YapiWatch` - Open a split with live reload
99
+
100
+
### Other Editors
101
+
102
+
The LSP communicates over stdio and works with any editor that supports the Language Server Protocol:
103
+
104
+
```bash
105
+
yapi lsp
106
+
```
107
+
108
+
| Feature | Description |
109
+
|---------|-------------|
110
+
|**Real-time Validation**| Errors and warnings as you type, with precise line/column positions |
@@ -492,61 +571,6 @@ yapi test ./tests --verbose # See server output
492
571
493
572
-----
494
573
495
-
## 🧠 Editor Integration (LSP)
496
-
497
-
Unlike other API clients, **yapi** ships with a **full LSP implementation** out of the box. Your editor becomes an intelligent API development environment with real-time validation, autocompletion, and inline execution.
498
-
499
-
### VS Code & Cursor
500
-
501
-
Install the official extension from [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=yapi.yapi-extension) or [Open VSX](https://open-vsx.org/extension/yapi/yapi-extension):
502
-
503
-
**Features:**
504
-
- **Run with `Cmd+Enter`** (Mac) or `Ctrl+Enter` (Windows/Linux) - execute requests without leaving your editor
505
-
- **Inline results panel** - see responses, headers, and timing right in VS Code
506
-
- **Real-time validation** - errors and warnings as you type
507
-
- **Intelligent autocompletion** - context-aware suggestions for keys, methods, and variables
508
-
- **Hover info** - hover over `${VAR}` to see environment variable status
509
-
510
-
The extension automatically detects `.yapi.yml` files and activates the language server. No configuration needed.
511
-
512
-
### Neovim (Native Plugin)
513
-
514
-
**yapi** was built with Neovim in mind. First-class support via `lua/yapi_nvim`:
515
-
516
-
```lua
517
-
-- lazy.nvim
518
-
{
519
-
dir = "~/path/to/yapi/lua/yapi_nvim",
520
-
config = function()
521
-
require("yapi_nvim").setup({
522
-
lsp = true, -- Enables the yapi Language Server
523
-
pretty = true, -- Uses the TUI renderer in the popup
524
-
})
525
-
end
526
-
}
527
-
```
528
-
529
-
Commands:
530
-
- `:YapiRun`- Execute the current buffer
531
-
- `:YapiWatch`- Open a split with live reload
532
-
533
-
### Other Editors
534
-
535
-
The LSP communicates over stdio and works with any editor that supports the Language Server Protocol:
536
-
537
-
```bash
538
-
yapi lsp
539
-
```
540
-
541
-
| Feature | Description |
542
-
|---------|-------------|
543
-
| **Real-time Validation** | Errors and warnings as you type, with precise line/column positions |
0 commit comments