build: remove presubmit dependency on luvit-meta

As discussed in https://github.com/yetone/avante.nvim/pull/2536 the
project should either use luv bindings from luals or luvit-meta
library, but not both, as they conflict with each other (especially
with uv.uv_timer_t). Given that other projects such as kickstart.nvim
and lazydev.nvim are switching to use the former, we should do the same
and drop luvit-meta dependency.

Also adjust code that was using luvit-meta's annotations for timers.
This commit is contained in:
Dmitry Torokhov
2025-07-30 21:08:10 -07:00
committed by yetone
parent d77e1272a0
commit d737fa6109
4 changed files with 2 additions and 4 deletions

View File

@@ -10,7 +10,6 @@
"$VIMRUNTIME/lua/vim/lsp", "$VIMRUNTIME/lua/vim/lsp",
"$PWD/lua", "$PWD/lua",
"${3rd}/luv/library", "${3rd}/luv/library",
"$DEPS_PATH/luvit-meta/library",
"$DEPS_PATH/lazy.nvim/lua", "$DEPS_PATH/lazy.nvim/lua",
"$DEPS_PATH/dressing.nvim/lua", "$DEPS_PATH/dressing.nvim/lua",
"$DEPS_PATH/snacks.nvim/lua", "$DEPS_PATH/snacks.nvim/lua",

View File

@@ -91,7 +91,6 @@ jobs:
"ibhagwan/fzf-lua" "ibhagwan/fzf-lua"
"nvim-tree/nvim-web-devicons" "nvim-tree/nvim-web-devicons"
"zbirenbaum/copilot.lua" "zbirenbaum/copilot.lua"
"Bilal2453/luvit-meta"
"folke/lazy.nvim" "folke/lazy.nvim"
) )
for dep in "${DEPS[@]}"; do for dep in "${DEPS[@]}"; do

View File

@@ -30,7 +30,7 @@ local SUGGESTION_NS = api.nvim_create_namespace("avante_suggestion")
---@field augroup integer ---@field augroup integer
---@field ignore_patterns table ---@field ignore_patterns table
---@field negate_patterns table ---@field negate_patterns table
---@field _timer? uv.uv_timer_t | uv_timer_t ---@field _timer? uv.uv_timer_t
---@field _contexts table ---@field _contexts table
---@field is_on_throttle boolean ---@field is_on_throttle boolean
local Suggestion = {} local Suggestion = {}

View File

@@ -15,7 +15,7 @@ local Utils = require("avante.utils")
---@field close_on_submit boolean ---@field close_on_submit boolean
---@field spinner_chars table ---@field spinner_chars table
---@field spinner_index integer ---@field spinner_index integer
---@field spinner_timer uv_timer_t | nil ---@field spinner_timer uv.uv_timer_t | nil
---@field spinner_active boolean ---@field spinner_active boolean
---@field default_value string | nil ---@field default_value string | nil
---@field popup_hint_id integer | nil ---@field popup_hint_id integer | nil