File: docs.lua

package info (click to toggle)
neovim-which-key 3.17.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 500 kB
  • sloc: sh: 21; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 434 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local Docs = require("lazy.docs")

local M = {}

function M.update()
  local config = Docs.extract("lua/which-key/config.lua", "\n(--@class wk%.Opts.-\n})")
  config = config:gsub("%s*debug = false.\n", "\n")
  Docs.save({
    config = config,
    colors = Docs.colors({
      modname = "which-key.colors",
      path = "lua/which-key/colors.lua",
      name = "WhichKey",
    }),
  })
end

M.update()
print("Updated docs")

return M