@@ -34,19 +34,15 @@ local default_config = {
3434 },
3535 auto_save = true ,
3636 max_marks = 100 ,
37- search_in_ui = true ,
3837 silent = false ,
39- -- minimal should be configured via ui opts
4038 minimal = false ,
4139 disable_default_keymaps = false ,
4240 debounce_ms = 500 , -- Debounce save operations
43- -- UI specific settings
4441 ui = {
4542 -- Position of the marks window.
4643 -- "center" positions the window in the middle of the editor (default).
4744 -- "top_center" aligns the window at the top of the screen, centered horizontally.
4845 -- "bottom_center" aligns the window at the bottom of the screen, centered horizontally.
49- minimal = false ,
5046 position = " center" ,
5147 },
5248}
@@ -55,11 +51,19 @@ local default_config = {
5551local config_schema = {
5652 auto_save = { type = " boolean" },
5753 max_marks = { type = " number" , min = 1 , max = 1000 },
58- search_in_ui = { type = " boolean" },
5954 silent = { type = " boolean" },
6055 minimal = { type = " boolean" },
6156 disable_default_keymaps = { type = " boolean" },
6257 debounce_ms = { type = " number" , min = 100 , max = 5000 },
58+ ui = {
59+ type = " table" ,
60+ fields = {
61+ position = {
62+ type = " string" ,
63+ allowed = { " center" , " top_center" , " bottom_center" },
64+ },
65+ },
66+ },
6367}
6468
6569local config = {}
@@ -742,4 +746,3 @@ function M.setup(opts)
742746end
743747
744748return M
745-
0 commit comments