Skip to content

Commit b70f182

Browse files
authored
fix: guard against nil result (#17)
1 parent 2d5189e commit b70f182

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/tailwind-tools/lsp.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ M.color_request = function(bufnr)
104104

105105
client.request("textDocument/documentColor", params, function(err, result, _, _)
106106
if err then return log.error(err.message) end
107+
if not result then return end
107108
if not vim.api.nvim_buf_is_valid(bufnr) then return end
108109

109110
---@type lsp.ColorInformation[]

0 commit comments

Comments
 (0)