mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
fix #30 : dropdown panel prompt position
This commit is contained in:
@@ -279,7 +279,7 @@ END
|
|||||||
| | see [2.1 Tag notation](#24-tag-notation)| |
|
| | see [2.1 Tag notation](#24-tag-notation)| |
|
||||||
| `command_palette_theme` | theme (layout) of the command palette| ivy |
|
| `command_palette_theme` | theme (layout) of the command palette| ivy |
|
||||||
| | - `ivy` (default): bottom panel overlay | |
|
| | - `ivy` (default): bottom panel overlay | |
|
||||||
| | - `popup`: floating popup window ||
|
| | - `dropdown`: floating popup window ||
|
||||||
|
|
||||||
|
|
||||||
The calendar support has its own options, contained in `calendar_opts`:
|
The calendar support has its own options, contained in `calendar_opts`:
|
||||||
@@ -421,7 +421,7 @@ make it easy for you and pop up a panel:
|
|||||||

|

|
||||||
|
|
||||||
The above illustration shows the default configuration of the panel layout: `ivy`. You can change it to a popup window
|
The above illustration shows the default configuration of the panel layout: `ivy`. You can change it to a popup window
|
||||||
by setting `command_palette_theme = 'popup'` during `setup()`.
|
by setting `command_palette_theme = 'dropdown'` during `setup()`.
|
||||||
|
|
||||||
This is what the popup looks like:
|
This is what the popup looks like:
|
||||||
|
|
||||||
|
|||||||
@@ -1674,7 +1674,9 @@ TelekastenCmd.command = function(subcommand)
|
|||||||
if M.Cfg.command_palette_theme == "ivy" then
|
if M.Cfg.command_palette_theme == "ivy" then
|
||||||
theme = themes.get_ivy()
|
theme = themes.get_ivy()
|
||||||
else
|
else
|
||||||
theme = themes.get_dropdown()
|
theme = themes.get_dropdown({
|
||||||
|
layout_config = { prompt_position = "top" },
|
||||||
|
})
|
||||||
end
|
end
|
||||||
show(theme)
|
show(theme)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user