willothy / flatten.nvim

Open files and command output from wezterm, kitty, and neovim terminals in your current neovim instance
https://luarocks.org/modules/willothy/flatten.nvim
MIT License
497 stars 13 forks source link

Add condition config for use with lazy #35

Closed willothy closed 1 year ago

willothy commented 1 year ago

Discussed in https://github.com/willothy/flatten.nvim/discussions/27

Originally posted by **herrvonvoid** March 25, 2023 ... this way of setting the plugin up with lazy.nvim is not very convenient because then flatten.nvim appears as plugin to clean in the lazy ui and has to be reinstalled every time I clean some other plugins. How about putting the check in lazy.nvim's global condition (defaults.cond) instead? ...
willothy commented 1 year ago

Checking if the instance is host or guest is not possible until after the plugin has loaded due to the wezterm/kitty logic, so I don't think I'm going to implement this. Loading flatten.nvim first should be fine, that's what I have always done.