Skip to content

Commit aecec70

Browse files
committed
chore: enforce stylua.toml
1 parent efc3194 commit aecec70

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

lua/supermaven-nvim/cmp.lua

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@ function source.complete(self, params, callback)
5454
return
5555
end
5656

57+
local context = params.context
58+
local cursor = context.cursor
5759

58-
local context = params.context
59-
local cursor = context.cursor
60-
61-
local completion_text = (inlay_instance.line_before_cursor) .. inlay_instance.completion_text
62-
local preview_text = completion_text
63-
local split = vim.split(completion_text, "\n", { plain = true })
64-
local label = label_text(split[1])
60+
local completion_text = inlay_instance.line_before_cursor .. inlay_instance.completion_text
61+
local preview_text = completion_text
62+
local split = vim.split(completion_text, "\n", { plain = true })
63+
local label = label_text(split[1])
6564

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

@@ -72,12 +71,12 @@ function source.complete(self, params, callback)
7271
local range = {
7372
start = {
7473
line = cursor.line,
75-
character = math.max(cursor.col - inlay_instance.prior_delete - #inlay_instance.line_before_cursor - 1, 0)
74+
character = math.max(cursor.col - inlay_instance.prior_delete - #inlay_instance.line_before_cursor - 1, 0),
7675
},
7776
["end"] = {
7877
line = cursor.line,
79-
character = vim.fn.col("$")
80-
}
78+
character = vim.fn.col("$"),
79+
},
8180
}
8281

8382
local items = {

0 commit comments

Comments
 (0)