mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 06:14:59 +00:00
20 lines
490 B
Lua
20 lines
490 B
Lua
-- Code editor gutter (line numbers)
|
|
|
|
---@class GutterConfig
|
|
---@field type string
|
|
---@field showLineNumbers boolean
|
|
---@field showFoldMarkers boolean
|
|
|
|
---@param show_line_numbers? boolean
|
|
---@param show_fold_markers? boolean
|
|
---@return GutterConfig
|
|
local function gutter(show_line_numbers, show_fold_markers)
|
|
return {
|
|
type = "editor_gutter",
|
|
showLineNumbers = show_line_numbers ~= false,
|
|
showFoldMarkers = show_fold_markers ~= false
|
|
}
|
|
end
|
|
|
|
return gutter
|