diff options
Diffstat (limited to 'pkgs/old-neovim/config/lua/plugins/mini-pick.lua')
| -rw-r--r-- | pkgs/old-neovim/config/lua/plugins/mini-pick.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/old-neovim/config/lua/plugins/mini-pick.lua b/pkgs/old-neovim/config/lua/plugins/mini-pick.lua new file mode 100644 index 0000000..de6c7ec --- /dev/null +++ b/pkgs/old-neovim/config/lua/plugins/mini-pick.lua @@ -0,0 +1,24 @@ +local win_config = function() + local height = math.floor(0.5 * vim.o.lines) + local width = math.floor(0.618 * vim.o.columns) + return { + anchor = 'NW', height = height, width = width, + row = math.floor(0.5 * (vim.o.lines - height)), + col = math.floor(0.5 * (vim.o.columns - width)), + } +end + +require('mini.pick').setup({ + options = { + content_from_bottom = true, + use_cache = true, + }, + window = { + config = win_config, + }, + -- delay = { + -- async = 1, + -- busy = 1, + -- }, +}) +require('mini.extra').setup() |
