fix(config): lsp config settings don't break if options arent set
This commit is contained in:
parent
b63e630c10
commit
4e46b1611b
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ lsp_installer.on_server_ready(function(server)
|
|||
end
|
||||
|
||||
-- override options if user definds them
|
||||
if config.lsp.servers[server.name] then
|
||||
if type(config.lsp.servers[server.name]) == 'table' then
|
||||
if config.lsp.servers[server.name].opts ~= nil then
|
||||
opts = config.lsp.servers[server.name].opts
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue