Skip to content

Commit

Permalink
chore: enforce stylua.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
sm-victorw committed Oct 2, 2024
1 parent 4329fe4 commit 474a17a
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions lua/supermaven-nvim/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,13 @@ function source.complete(self, params, callback)
return
end

local context = params.context
local cursor = context.cursor

local context = params.context
local cursor = context.cursor

local completion_text = (inlay_instance.line_before_cursor) .. inlay_instance.completion_text
local preview_text = completion_text
local split = vim.split(completion_text, "\n", { plain = true })
local label = label_text(split[1])
local completion_text = inlay_instance.line_before_cursor .. inlay_instance.completion_text
local preview_text = completion_text
local split = vim.split(completion_text, "\n", { plain = true })
local label = label_text(split[1])

local insertTextFormat = 1 -- cmp.lsp.InsertTextFormat.PlainText

Expand All @@ -72,12 +71,12 @@ function source.complete(self, params, callback)
local range = {
start = {
line = cursor.line,
character = math.max(cursor.col - inlay_instance.prior_delete - #inlay_instance.line_before_cursor - 1, 0)
character = math.max(cursor.col - inlay_instance.prior_delete - #inlay_instance.line_before_cursor - 1, 0),
},
["end"] = {
line = cursor.line,
character = vim.fn.col("$")
}
character = vim.fn.col("$"),
},
}

local items = {
Expand Down

0 comments on commit 474a17a

Please sign in to comment.