73 lines
1.9 KiB
Lua
73 lines
1.9 KiB
Lua
---@alias TerminalModeType "split" | "float"
|
|
---@alias SplitDirection "vertical" | "horizontal"
|
|
---@alias SplitAnchorType "right" | "bottom"
|
|
|
|
---@class VernKeybindItem
|
|
---@field user_command string
|
|
---@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 VernEnvItem
|
|
---@field author string
|
|
|
|
---@class VernCoreConfig
|
|
---@field workspace_root string
|
|
---@field env VernEnvItem
|
|
---@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
|
|
|
|
---@class VernCPPConfig : VernCoreConfig
|
|
---@field cpp? VernLanguageConfig
|
|
|
|
---@class VernLuaConfig : VernCoreConfig
|
|
---@field lua? VernLanguageConfig
|
|
---
|
|
---@class VernJavaConfig : VernCoreConfig
|
|
---@field java? VernLanguageConfig
|