diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs/tinymist.lua | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/tinymist.lua b/lua/lspconfig/configs/tinymist.lua index 21c6aa00..9146fdc1 100644 --- a/lua/lspconfig/configs/tinymist.lua +++ b/lua/lspconfig/configs/tinymist.lua @@ -1,3 +1,47 @@ +---@param command_name string +---@return fun():nil run_tinymist_command, string cmd_name, string cmd_desc +local function create_tinymist_command(command_name) + local export_type = command_name:match 'tinymist%.export(%w+)' + local info_type = command_name:match 'tinymist%.(%w+)' + if info_type and info_type:match '^get' then + info_type = info_type:gsub('^get', 'Get') + end |
