docs(nvim): enrich mcp tools/list schema description to explicitly enforce AST and autosave rules

This commit is contained in:
Riz Ashraf committed 2026-09-21 16:04:17 +01:00
1 parent 891bd481b9
commit 075bc50645
1 file changed
+1 -1
+1 -1
View File
@@ -689,7 +689,7 @@ pub async fn run_mcp_loop(app_name: &str, app_version: &str) {
}, },
{ {
"name": "nvim_execute_lua", "name": "nvim_execute_lua",
"description": "Execute arbitrary Lua code in Neovim and return the result (JSON serialized).", "description": "Execute arbitrary Lua code in Neovim and return the result (JSON serialized). CRITICAL: This is the primary tool for editing files. Use `vim.api.nvim_buf_set_lines` to modify buffers. ALWAYS trigger a notification (`require('notify')(...)`). ALWAYS auto-save (`vim.cmd('write')`) after edits. NEVER use interactive commands or 'c' flags in substitutions (e.g. use `vim.cmd('%s/old/new/ge')`).",
"inputSchema": { "inputSchema": {
"type": "object", "type": "object",
"properties": { "properties": {