fzf-tmux in neovim
change
commit a374a1b28b659c510163f7ce9cd690623b69b660
author Alpha Chen <alpha@kejadlen.dev>
date
parent 880a2ec4
diff --git a/.config/nvim/fnl/fzf.fnl b/.config/nvim/fnl/fzf.fnl
index 6e8fe761..a5693635 100644
--- a/.config/nvim/fnl/fzf.fnl
+++ b/.config/nvim/fnl/fzf.fnl
@@ -16,6 +16,9 @@
     (vim.api.nvim_create_user_command :FzfSpell fzf-spell {})
     (vim.keymap.set :n :z= ":FzfSpell<cr>" {:noremap true})))
 
+(if (vim.fn.exists :TMUX)
+    (set vim.g.fzf_layout {:tmux "-p80%,60%"}))
+
 (when (vim.fn.isdirectory :/opt/homebrew/opt/fzf/plugin)
   (vim.opt.rtp:append :/opt/homebrew/opt/fzf)
   (init-keymaps)