summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-05-16 22:54:29 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-05-16 22:54:29 +0200
commit2b0f8bf9ae0dd6496feb43bc34aef1af29dcd9bd (patch)
tree3d78d24f9b7181915fb7b23bb78a68f8901c0dca
parent97283fd00ab767ae8db416c008b66468f8893f7c (diff)
Add dynamic harpoon menu width
-rw-r--r--fnl/plugins/editor/harpoon.fnl3
1 files changed, 2 insertions, 1 deletions
diff --git a/fnl/plugins/editor/harpoon.fnl b/fnl/plugins/editor/harpoon.fnl
index 876386e..167cf3b 100644
--- a/fnl/plugins/editor/harpoon.fnl
+++ b/fnl/plugins/editor/harpoon.fnl
@@ -17,7 +17,8 @@
{})
(vim.keymap.set :n :<s-tab>
"<cmd>Telescope buffers theme=dropdown previewer=false initial_mode=normal<cr>"
- {}))
+ {})
+ {:menu {:width (- (vim.api.nvim_win_get_width 0) 4)}})
{1 :ThePrimeagen/harpoon
:event :BufReadPost