Refactor a bit

This commit is contained in:
hrsh7th
2022-08-20 19:23:05 +09:00
parent 9417f48a99
commit 49c4050e24
3 changed files with 59 additions and 55 deletions

View File

@@ -6,7 +6,7 @@ local lsp = {}
lsp.Position = {
---Convert lsp.Position to vim.Position
---@param buf integer|string
---@param buf integer
---@param position lsp.Position
---@return vim.Position
to_vim = function(buf, position)
@@ -26,7 +26,7 @@ lsp.Position = {
}
end,
---Convert vim.Position to lsp.Position
---@param buf integer|string
---@param buf integer
---@param position vim.Position
---@return lsp.Position
to_lsp = function(buf, position)