chore: run stylua [generated] (#460)

* chore: add stylua

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: running stylua

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-09-03 04:19:54 -04:00
committed by GitHub
parent 4ad913435c
commit e8c71d931e
28 changed files with 608 additions and 1181 deletions

View File

@@ -10,21 +10,13 @@ function source.new(sidebar)
}, { __index = source })
end
function source:is_available()
return vim.bo.filetype == "AvanteInput"
end
function source:is_available() return vim.bo.filetype == "AvanteInput" end
source.get_position_encoding_kind = function()
return "utf-8"
end
source.get_position_encoding_kind = function() return "utf-8" end
function source:get_trigger_characters()
return { "/" }
end
function source:get_trigger_characters() return { "/" } end
function source:get_keyword_pattern()
return [[\%(@\|#\|/\)\k*]]
end
function source:get_keyword_pattern() return [[\%(@\|#\|/\)\k*]] end
function source:complete(_, callback)
local kind = require("cmp").lsp.CompletionItemKind.Variable
@@ -41,10 +33,10 @@ function source:complete(_, callback)
})
end
callback({
callback {
items = items,
isIncomplete = false,
})
}
end
return source