chore: delete everything related to nui-components (#129)
This commit is contained in:
parent
83d067695e
commit
b3d14359b9
@ -33,12 +33,7 @@ Install `avante.nvim` using [lazy.nvim](https://github.com/folke/lazy.nvim):
|
|||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
"stevearc/dressing.nvim",
|
"stevearc/dressing.nvim",
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
{
|
"MunifTanjim/nui.nvim",
|
||||||
"grapp-dev/nui-components.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"MunifTanjim/nui.nvim"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
--- The below is optional, make sure to setup it properly if you have lazy=true
|
--- The below is optional, make sure to setup it properly if you have lazy=true
|
||||||
{
|
{
|
||||||
'MeanderingProgrammer/render-markdown.nvim',
|
'MeanderingProgrammer/render-markdown.nvim',
|
||||||
|
@ -1,27 +1,5 @@
|
|||||||
---@meta
|
---@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
|
---@class NuiSplit
|
||||||
---@field winid integer | nil
|
---@field winid integer | nil
|
||||||
---@field bufnr 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>
|
---@param opts? table<"'expr'"|"'noremap'"|"'nowait'"|"'remap'"|"'script'"|"'silent'"|"'unique'", boolean>
|
||||||
---@return nil
|
---@return nil
|
||||||
function AvanteSplit:map(mode, key, handler, opts, ___force___) end
|
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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user