diff --git a/README.md b/README.md index d655f7ae7..677bc3dcb 100644 --- a/README.md +++ b/README.md @@ -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', diff --git a/lua/avante/types.lua b/lua/avante/types.lua index c755172da..a8f37de30 100644 --- a/lua/avante/types.lua +++ b/lua/avante/types.lua @@ -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 ----@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