summaryrefslogtreecommitdiff
path: root/pkgs/old-neovim/config/lua/plugins/mini-pick.lua
blob: de6c7ec06ad0789cd8fb43b696273ff5ed8d750a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()