diff options
| author | dundargoc <gocdundar@gmail.com> | 2024-12-22 14:10:44 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-12-22 14:37:19 +0100 |
| commit | d68378cca4ad7b924507357227ace2333cf23f1a (patch) | |
| tree | 60c8e3332837de700068a920cd0f8fa0cf0b1b24 /scripts | |
| parent | refactor: deprecate util.path.path_separator (diff) | |
| download | nvim-lspconfig-d68378cca4ad7b924507357227ace2333cf23f1a.tar nvim-lspconfig-d68378cca4ad7b924507357227ace2333cf23f1a.tar.gz nvim-lspconfig-d68378cca4ad7b924507357227ace2333cf23f1a.tar.bz2 nvim-lspconfig-d68378cca4ad7b924507357227ace2333cf23f1a.tar.lz nvim-lspconfig-d68378cca4ad7b924507357227ace2333cf23f1a.tar.xz nvim-lspconfig-d68378cca4ad7b924507357227ace2333cf23f1a.tar.zst nvim-lspconfig-d68378cca4ad7b924507357227ace2333cf23f1a.zip | |
refactor: silence luals warnings
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/docgen.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/docgen.lua b/scripts/docgen.lua index aac10d05..c1302bb5 100644 --- a/scripts/docgen.lua +++ b/scripts/docgen.lua @@ -41,7 +41,7 @@ local function indent(n, s) assert(type(n) == 'string', 'n must be number or string') prefix = n end - local lines = vim.split(s, '\n', true) + local lines = vim.split(s, '\n') for i, line in ipairs(lines) do lines[i] = prefix .. line end @@ -89,7 +89,7 @@ local function require_all_configs() vim.env.XDG_CACHE_HOME = '/home/user/.cache' -- Configs are lazy-loaded, tickle them to populate the `configs` singleton. - for _, v in ipairs(vim.fn.glob('lua/lspconfig/configs/*.lua', 1, 1)) do + for _, v in ipairs(vim.fn.glob('lua/lspconfig/configs/*.lua', true, true)) do local module_name = v:gsub('.*/', ''):gsub('%.lua$', '') configs[module_name] = require('lspconfig.configs.' .. module_name) end |
