Skip to content

Commit fbf3aff

Browse files
committed
Rename configure -> config to prevent #8 from recurring when docs are regenerated
1 parent bc92a4c commit fbf3aff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/lsp-status.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ local statusline = require('lsp-status/statusline')
5757
---
5858
--@param config: (required, table) Table of values; keys are as listed above. Accept defaults by
5959
--- omitting the relevant key.
60-
local function configure(config)
61-
_config = vim.tbl_extend('keep', config, _config, default_config)
60+
local function config(user_config)
61+
_config = vim.tbl_extend('keep', user_config, _config, default_config)
6262
pyls_ms._init(messages, _config)
6363
clangd._init(messages, _config)
6464
messaging._init(messages, _config)
@@ -95,7 +95,7 @@ local function on_attach(client)
9595
end
9696
end
9797

98-
configure(_config)
98+
config(_config)
9999

100100
-- Stubs for documentation
101101
--- Update the current function symbol.
@@ -171,7 +171,7 @@ local M = {
171171
register_progress = messaging.register_progress,
172172
register_client = messaging.register_client,
173173
extensions = extension_callbacks,
174-
config = configure,
174+
config = config,
175175
on_attach = on_attach,
176176
status = statusline.status,
177177
capabilities = messaging.capabilities

0 commit comments

Comments
 (0)