forked from yetone/avante.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: synchronize the size of the floating window and split window (ye…
- Loading branch information
Showing
3 changed files
with
183 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
---@meta | ||
|
||
---@class NuiSplit | ||
---@class AvanteComp | ||
---@field winid integer | nil | ||
---@field bufnr integer | nil | ||
local AvanteSplit = require("nui.split") | ||
local AvanteComp = {} | ||
|
||
---@return nil | ||
function AvanteSplit:mount() end | ||
function AvanteComp:mount() end | ||
|
||
---@return nil | ||
function AvanteSplit:unmount() end | ||
function AvanteComp:unmount() end | ||
|
||
---@param event string | string[] | ||
---@param handler string | function | ||
---@param options? table<"'once'" | "'nested'", boolean> | ||
---@return nil | ||
function AvanteSplit:on(event, handler, options) end | ||
function AvanteComp:on(event, handler, options) end | ||
|
||
-- set keymap for this split | ||
---@param mode string check `:h :map-modes` | ||
---@param key string|string[] key for the mapping | ||
---@param handler string | fun(): nil handler for the mapping | ||
---@param opts? table<"'expr'"|"'noremap'"|"'nowait'"|"'remap'"|"'script'"|"'silent'"|"'unique'", boolean> | ||
---@return nil | ||
function AvanteSplit:map(mode, key, handler, opts, ___force___) end | ||
function AvanteComp:map(mode, key, handler, opts, ___force___) end |