mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 19:50:09 +02:00
style(blink): make luals happy
This commit is contained in:
parent
b07378dde4
commit
5105f3c029
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
---@diagnostic disable: missing-fields
|
||||||
if lazyvim_docs then
|
if lazyvim_docs then
|
||||||
-- set to `true` to follow the main branch
|
-- set to `true` to follow the main branch
|
||||||
-- you need to have a working rust toolchain to build the plugin
|
-- you need to have a working rust toolchain to build the plugin
|
||||||
|
@ -101,9 +102,11 @@ return {
|
||||||
|
|
||||||
--- NOTE: compat with latest version. Currenlty 0.7.6
|
--- NOTE: compat with latest version. Currenlty 0.7.6
|
||||||
if not vim.g.lazyvim_blink_main then
|
if not vim.g.lazyvim_blink_main then
|
||||||
|
---@diagnostic disable-next-line: inject-field
|
||||||
opts.sources.completion = opts.sources.completion or {}
|
opts.sources.completion = opts.sources.completion or {}
|
||||||
opts.sources.completion.enabled_providers = enabled
|
opts.sources.completion.enabled_providers = enabled
|
||||||
if vim.tbl_get(opts, "completion", "menu", "draw", "treesitter") then
|
if vim.tbl_get(opts, "completion", "menu", "draw", "treesitter") then
|
||||||
|
---@diagnostic disable-next-line: assign-type-mismatch
|
||||||
opts.completion.menu.draw.treesitter = true
|
opts.completion.menu.draw.treesitter = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -119,6 +122,7 @@ return {
|
||||||
local kind_idx = #CompletionItemKind + 1
|
local kind_idx = #CompletionItemKind + 1
|
||||||
|
|
||||||
CompletionItemKind[kind_idx] = provider.kind
|
CompletionItemKind[kind_idx] = provider.kind
|
||||||
|
---@diagnostic disable-next-line: no-unknown
|
||||||
CompletionItemKind[provider.kind] = kind_idx
|
CompletionItemKind[provider.kind] = kind_idx
|
||||||
|
|
||||||
---@type fun(ctx: blink.cmp.Context, items: blink.cmp.CompletionItem[]): blink.cmp.CompletionItem[]
|
---@type fun(ctx: blink.cmp.Context, items: blink.cmp.CompletionItem[]): blink.cmp.CompletionItem[]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue