mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
update-scripts/nvim-lspconfig: server_configurations -> configs
This commit is contained in:
parent
684df4d93d
commit
849c33c283
1 changed files with 2 additions and 2 deletions
|
@ -4,9 +4,9 @@ local configs = require("lspconfig.configs")
|
|||
local util = require("lspconfig.util")
|
||||
|
||||
local function require_all_configs()
|
||||
for _, v in ipairs(vim.fn.glob(vim.env.lspconfig .. "/lua/lspconfig/server_configurations/*.lua", 1, 1)) do
|
||||
for _, v in ipairs(vim.fn.glob(vim.env.lspconfig .. "/lua/lspconfig/configs/*.lua", 1, 1)) do
|
||||
local module_name = v:gsub(".*/", ""):gsub("%.lua$", "")
|
||||
configs[module_name] = require("lspconfig.server_configurations." .. module_name)
|
||||
configs[module_name] = require("lspconfig.configs." .. module_name)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue