Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dundalek committed Feb 13, 2024
1 parent 7d12e9a commit cdfeaf4
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions lua/lazy-lsp/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ local function in_shell(nix_pkgs, cmd)
end

-- should rename to something indicating that it is for an individual config
local function process_config(lang_config, user_config, default_config, nix_pkg, filetypes, config_override, prefer_local)
local function process_config(
lang_config,
user_config,
default_config,
nix_pkg,
filetypes,
config_override,
prefer_local
)
local config = vim.tbl_extend(
"keep",
user_config or {},
Expand Down Expand Up @@ -121,8 +129,15 @@ local function server_configs(lspconfig, servers, opts, overrides)
local user_config = configs[lsp]
local config_override = overrides[lsp]

local config =
process_config(lang_config, user_config, default_config, nix_pkg, server_to_filetypes[lsp], config_override, prefer_local)
local config = process_config(
lang_config,
user_config,
default_config,
nix_pkg,
server_to_filetypes[lsp],
config_override,
prefer_local
)
if config then
returned_configs[lsp] = config
end
Expand Down

0 comments on commit cdfeaf4

Please sign in to comment.