From 9786eb8672213344d8d1b7bdef12bc94510b20db Mon Sep 17 00:00:00 2001 From: outremonde Date: Tue, 10 Jun 2025 20:32:00 -0400 Subject: initialized repository Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626 --- pkgs/old-neovim/config/lua/plugins/mini-pick.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkgs/old-neovim/config/lua/plugins/mini-pick.lua (limited to 'pkgs/old-neovim/config/lua/plugins/mini-pick.lua') 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() -- cgit v1.2.3