diff options
| author | dundargoc <gocdundar@gmail.com> | 2024-12-17 12:11:31 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-12-19 11:33:57 +0100 |
| commit | 040001d85e9190a904d0e35ef5774633e14d8475 (patch) | |
| tree | 1e4438d174cc73b4651ff8daf42808a7e2b6c190 /scripts | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar.gz nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar.bz2 nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar.lz nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar.xz nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar.zst nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.zip | |
refactor: fix luals warningsv1.2.0
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/docgen.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/docgen.lua b/scripts/docgen.lua index 02c04dc8..6b73cba6 100644 --- a/scripts/docgen.lua +++ b/scripts/docgen.lua @@ -278,10 +278,9 @@ local function make_implemented_servers_list() end local function generate_readme(template_file, params) - vim.validate { - lsp_server_details = { params.lsp_server_details, 's' }, - implemented_servers_list = { params.implemented_servers_list, 's' }, - } + vim.validate('lsp_server_details', params.lsp_server_details, 'string') + vim.validate('implemented_servers_list', params.implemented_servers_list, 'string') + local input_template = readfile(template_file) local readme_data = template(input_template, params) |
