From 1caad46f40e1965e4bf0cc68d98f341bc4310d8c Mon Sep 17 00:00:00 2001 From: Daniil Rozanov Date: Fri, 3 May 2024 01:24:29 +0300 Subject: docs: lua documentation for most used tables and functions --- lua/cmake/commandline.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lua/cmake/commandline.lua') diff --git a/lua/cmake/commandline.lua b/lua/cmake/commandline.lua index 55c671c..c3d0ef1 100644 --- a/lua/cmake/commandline.lua +++ b/lua/cmake/commandline.lua @@ -67,7 +67,10 @@ end local build_options = { clean = true, - targets = complete_value(project.current_targets, {}, "name"), + j = function() + return {} + end, + target = complete_value(project.current_targets, {}, "name"), } local install_options = { @@ -128,7 +131,7 @@ function M.parse(args) if not value then result[key] = true else - if key == "targets" then + if key == "target" then result[key] = vim.split(value, ",") else result[key] = value -- cgit v1.2.3