refractalize / oil-git-status.nvim

55 stars 6 forks source link

feat: automatic lazy loading + health check + support configuration with `vim.g` #7

Open mrcjkb opened 4 months ago

mrcjkb commented 4 months ago

Hey :wave:

Nice plugin!

I would love to use it, but the need to call a setup function to enable this plugin's functionality has some caveats:

This PR uses Neovim's built-in ftplugin feature (see :h runtimepath) to make sure this plugin initialises itself lazily, when opening a oil filetype. As a nice side-effect, this also means that users (or plugin managers) don't have to worry about the order in which oil.nvim and this plugin are configured (oil.nvim must be loaded in order for Neovim to know about the oil filetype). The setup function only sets the config, but doesn't load anything.

mrcjkb commented 4 months ago

Oh, by the way: I noticed there's no license? Technically, this makes it illegal for me to fork this plugin :sweat_smile:

ryoppippi commented 3 months ago

@mrcjkb Hi haha, so I made an issue lol