Files
vern-nvim/lua/vern/types.lua
T
DarthMooMancer 685a711644 REFACTOR: Annotations for autocompletion, reworked how projects are made
and handled, wrote the c file replacing the copied python code.
2026-10-22 04:29:52 -04:00

59 lines
1.6 KiB
Lua

---@alias TerminalModeType "split" | "float"
---@alias SplitDirection "vertical" | "horizontal"
---@alias SplitAnchorType "right" | "bottom"
---@class VernKeybindItem
---@field desc string
---@field action function
---@class VernFloatWindowConfig
---@field padding { left: integer, right: integer, top: integer, bottom: integer }
---@field border { enabled: boolean, type: string }
---@class VernSplitWindowConfig
---@field direction SplitDirection
---@field anchor SplitAnchorType
---@field size string
---@class VernWindowConfig
---@field float VernFloatWindowConfig
---@field split VernSplitWindowConfig
---@class VernModeConfig
---@field type TerminalModeType
---@field win VernWindowConfig
---@class VernTerminalConfig
---@field mode VernModeConfig
---@class VernCoreConfig
---@field workspace_root string
---@field keybinds table<string, VernKeybindItem>
---@field terminal VernTerminalConfig
---@class VernFileLayout
---@field path string
---@field name string
---@field kind string
---@field kind_path string
---@class VernExtrasLayout : VernFileLayout
---@field enabled boolean
---@class VernLanguageTemplates
---@field project table<string, VernFileLayout>
---@field file table<string, VernFileLayout>
---@field extras table<string, VernExtrasLayout>
---@class VernLanguageConfig
---@field root string
---@field dirs table<string, string>
---@field keybinds table<string, VernKeybindItem>
---@field templates VernLanguageTemplates
---@class VernPythonConfig : VernCoreConfig
---@field python VernLanguageConfig
---@class VernCConfig : VernCoreConfig
---@field c VernLanguageConfig