Add sort (required nvim-treesitter)

This commit is contained in:
hrsh7th
2022-03-30 20:36:19 +09:00
parent 5e794cdf5b
commit dc3113a79f
6 changed files with 73 additions and 4 deletions

View File

@@ -412,9 +412,9 @@ entry.get_documentation = function(self)
-- detail
if misc.safe(item.detail) and item.detail ~= '' then
local ft = self.context.filetype
local dot_index = string.find(ft, "%.")
local dot_index = string.find(ft, '%.')
if dot_index ~= nil then
ft = string.sub(ft, 0, dot_index-1)
ft = string.sub(ft, 0, dot_index - 1)
end
table.insert(documents, {
kind = types.lsp.MarkupKind.Markdown,