mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 11:24:55 +02:00
nvim: lsp: guard against empty server configs.
This commit is contained in:
parent
65f8ae7e3a
commit
3decda3d31
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ return {
|
|||
has_cmp and cmp_lsp.default_capabilities() or {})
|
||||
|
||||
local function setup(server)
|
||||
local server_opts = opts.servers[server]
|
||||
local server_opts = opts.servers[server] or {}
|
||||
|
||||
if type(server_opts) == "function" then
|
||||
server_opts = server_opts()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue