diff options
| author | outremonde <outremonde@vivaldi.net> | 2025-06-10 20:32:00 -0400 |
|---|---|---|
| committer | outremonde <outremonde@vivaldi.net> | 2025-06-10 20:32:00 -0400 |
| commit | 9786eb8672213344d8d1b7bdef12bc94510b20db (patch) | |
| tree | b7d79440800c92d32187ab32c636b0830c94a610 /pkgs/old-neovim/config/lua/plugins/mini-pick.lua | |
initialized repository
Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626
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() |
