Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Apr 26, 2024
1 parent bcd4b5e commit b948a15
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lua/dotvim/extra/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ function M.get_lsp_item_import_location(completion, source)
return nil
end

if source_name == "tsserver" then
return completion.detail
vim.print(source_name, completion)

if source_name == "tsserver" or source_name == "typescript-tools" then
return vim.F.if_nil(
vim.tbl_get(completion, "data", "entryNames", 1, "source"),
completion.detail
)
elseif source_name == "pyright" and completion.labelDetails ~= nil then
return completion.labelDetails.description
elseif source_name == "texlab" then
Expand Down

0 comments on commit b948a15

Please sign in to comment.