mirror of
https://github.com/pnx/dotfiles
synced 2026-06-17 19:40:02 +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 {})
|
has_cmp and cmp_lsp.default_capabilities() or {})
|
||||||
|
|
||||||
local function setup(server)
|
local function setup(server)
|
||||||
local server_opts = opts.servers[server]
|
local server_opts = opts.servers[server] or {}
|
||||||
|
|
||||||
if type(server_opts) == "function" then
|
if type(server_opts) == "function" then
|
||||||
server_opts = server_opts()
|
server_opts = server_opts()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue