* feat: Consistent and sensible layout_config * [docgen] Update doc/telescope.txt skip-checks: true * [WIP]: Thu 17 Jun 2021 03:36:44 PM EDT * [WIP]: Thu 17 Jun 2021 03:38:11 PM EDT * layout_default -> layout_defaults * remove options from bug repot * Conni2461 suggestions: part 1 * [docgen] Update doc/telescope.txt skip-checks: true * Conni2461 suggestions: part 2 * [docgen] Update doc/telescope.txt skip-checks: true * Linting * Improve deprecation checks - Move `layout_defaults` handling to `deprecated.lua` - Check for "layout keys" outside of `layout_config` on `setup` * fixup: Just add a few more words Co-authored-by: Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> Co-authored-by: Github Actions <actions@github>
42 lines
1.0 KiB
Lua
42 lines
1.0 KiB
Lua
-- Setup telescope with defaults
|
|
if RELOAD then RELOAD('telescope') end
|
|
require('telescope').setup()
|
|
|
|
local docgen = require('docgen')
|
|
|
|
local docs = {}
|
|
|
|
docs.test = function()
|
|
-- TODO: Fix the other files so that we can add them here.
|
|
local input_files = {
|
|
"./lua/telescope/init.lua",
|
|
"./lua/telescope/builtin/init.lua",
|
|
"./lua/telescope/pickers/layout_strategies.lua",
|
|
"./lua/telescope/actions/init.lua",
|
|
"./lua/telescope/actions/state.lua",
|
|
"./lua/telescope/actions/set.lua",
|
|
"./lua/telescope/previewers/init.lua",
|
|
"./lua/telescope/config/resolve.lua",
|
|
"./lua/telescope/themes.lua",
|
|
}
|
|
|
|
table.sort(input_files, function(a, b)
|
|
return #a < #b
|
|
end)
|
|
|
|
local output_file = "./doc/telescope.txt"
|
|
local output_file_handle = io.open(output_file, "w")
|
|
|
|
for _, input_file in ipairs(input_files) do
|
|
docgen.write(input_file, output_file_handle)
|
|
end
|
|
|
|
output_file_handle:write(" vim:tw=78:ts=8:ft=help:norl:\n")
|
|
output_file_handle:close()
|
|
vim.cmd [[checktime]]
|
|
end
|
|
|
|
docs.test()
|
|
|
|
return docs
|