chore: delete everything related to nui-components ()

This commit is contained in:
yetone 2024-08-21 22:10:49 +08:00 committed by GitHub
parent 83d067695e
commit b3d14359b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 68 deletions

@ -33,12 +33,7 @@ Install `avante.nvim` using [lazy.nvim](https://github.com/folke/lazy.nvim):
"nvim-tree/nvim-web-devicons",
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
{
"grapp-dev/nui-components.nvim",
dependencies = {
"MunifTanjim/nui.nvim"
}
},
"MunifTanjim/nui.nvim",
--- The below is optional, make sure to setup it properly if you have lazy=true
{
'MeanderingProgrammer/render-markdown.nvim',

@ -1,27 +1,5 @@
---@meta
---@class NuiSignalValue: boolean
local NuiSignalValue = require("nui-components.signal.value")
---@return boolean
function NuiSignalValue:negate() end
---@class NuiSignal
---@field is_loading boolean | NuiSignalValue
---@field text string
local AvanteSignal = require("nui-components.signal")
---@return any
function AvanteSignal:get_value() end
---@class NuiRenderer
local AvanteRenderer = require("nui-components.renderer")
---@class NuiComponent
---@field winid integer | nil
---@field bufnr integer | nil
local AvanteComponent = require("nui-components.component")
---@class NuiSplit
---@field winid integer | nil
---@field bufnr integer | nil
@ -46,43 +24,3 @@ function AvanteSplit:on(event, handler, options) end
---@param opts? table<"'expr'"|"'noremap'"|"'nowait'"|"'remap'"|"'script'"|"'silent'"|"'unique'", boolean>
---@return nil
function AvanteSplit:map(mode, key, handler, opts, ___force___) end
---@param opts table<string, any>
---@return NuiRenderer
function AvanteRenderer.create(opts) end
---@return NuiComponent[]
function AvanteRenderer:get_focusable_components() end
---@param mappings {mode: string[], key: string, handler: fun(): any}[]
---@return nil
function AvanteRenderer:add_mappings(mappings) end
---@param id string
---@return NuiComponent
function AvanteRenderer:get_component_by_id(id) end
---@param body fun():NuiComponent
function AvanteRenderer:render(body) end
---@return nil
function AvanteRenderer:focus() end
---@return nil
function AvanteRenderer:close() end
---@param callback fun():nil
---@return nil
function AvanteRenderer:on_mount(callback) end
---@param callback fun():nil
---@return nil
function AvanteRenderer:on_unmount(callback) end
---@class LayoutSize
---@field width integer?
---@field height integer?
---@param size LayoutSize
---@return nil
function AvanteRenderer:set_size(size) end