Skip to content

Commit

Permalink
fix(sources/lsp): always return a table for trigger character
Browse files Browse the repository at this point in the history
closes #152
  • Loading branch information
max397574 committed Dec 10, 2024
1 parent 75bd150 commit 37477ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/care/sources/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function lsp_source.new(client)
end)
end,
get_trigger_characters = function()
return client.server_capabilities.completionProvider.triggerCharacters
return client.server_capabilities.completionProvider.triggerCharacters or {}
end,
is_available = function()
return not client.is_stopped()
Expand Down

0 comments on commit 37477ef

Please sign in to comment.