Skip to content

Commit

Permalink
set filetype of menu buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Sep 14, 2024
1 parent ae8029e commit 78da864
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/menu/lib/Ribosome/Menu/Interpreter/MenuUiWindow.hs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ itemsOptions (row, col, height, width) options =
ensureName menuItemsScratchId options
& #float <|>~ Just floatOptions
& #maxSize <|>~ Just (height - 5)
& #filetype .~ Just "ribosome-menu-items"
where
floatOptions =
def
Expand All @@ -235,6 +236,7 @@ statusOptions (row, col, _, width) options =
ensureName "ribosome-menu-status" options
& #float <|>~ Just floatOptions
& #size <|>~ Just 1
& #filetype .~ Just "ribosome-menu-status"
where
floatOptions =
def
Expand All @@ -258,6 +260,7 @@ promptOptions (row, col, _, width) custom =
& #size .~ Just 1
& #maxSize .~ Just 1
& #float .~ Just floatOptions
& #filetype .~ Just "ribosome-menu-prompt"
where
floatOptions =
def
Expand Down

0 comments on commit 78da864

Please sign in to comment.