diff options
| author | triethyl <triethylammonium@pm.me> | 2025-08-16 20:20:21 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-08-16 20:20:21 -0400 |
| commit | 58ceb817bb6ba195d1189160878f318f3bcda0ef (patch) | |
| tree | 6c17c013c92af8c6e410bb1d4fe3a2557841d0d3 /pkgs/custom-neovim/config/lua/plugins/mini-pick.lua | |
| parent | 94980b0be13a690128992d98a2ed5db3ab592642 (diff) | |
neovim: restarted config
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins/mini-pick.lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/plugins/mini-pick.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/custom-neovim/config/lua/plugins/mini-pick.lua b/pkgs/custom-neovim/config/lua/plugins/mini-pick.lua new file mode 100644 index 0000000..c08c1de --- /dev/null +++ b/pkgs/custom-neovim/config/lua/plugins/mini-pick.lua @@ -0,0 +1,22 @@ +return { + "mini.pick", + cmd = "Pick", + after = function() + local win_config = function() + local height = math.floor(0.618 * 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 { + window = { + config = win_config, + }, + } + vim.cmd.packadd("mini.extra") + require("mini.extra").setup() + end +} |
