From 44ba712bc3015cce9b599d18f947d85a630e512b Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 21 Apr 2025 13:43:00 -0700 Subject: ci(lint): use client:exec_cmd() #3755 Use `client:exec_cmd()` instead of calling `request("workspace/executeCommand")` directly. --- scripts/docgen.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/docgen.lua') diff --git a/scripts/docgen.lua b/scripts/docgen.lua index 956541ca..8695e209 100755 --- a/scripts/docgen.lua +++ b/scripts/docgen.lua @@ -3,7 +3,6 @@ local root = vim.trim(vim.system({ 'git', 'rev-parse', '--show-toplevel' }):wait vim.opt.rtp:append(root) local util = require 'lspconfig.util' -local inspect = vim.inspect local function template(s, params) return (s:gsub('{{([^{}]+)}}', params)) @@ -147,7 +146,7 @@ local function make_lsp_sections(is_markdown) if type(v) == 'boolean' then return ('- `%s` : `%s`'):format(k, v) elseif type(v) ~= 'function' and k ~= 'root_dir' then - return ('- `%s` :\n ```lua\n%s\n ```'):format(k, indent(2, inspect(v))) + return ('- `%s` :\n ```lua\n%s\n ```'):format(k, indent(2, vim.inspect(v))) end local file = assert(io.open(config_file, 'r')) -- cgit v1.2.3-70-g09d2