nvim-lua / nvim-lua-plugin-template

A starter template for a Neovim plugin written in Lua
140 stars 13 forks source link

Problem: Enforce and check if lua functions of plugins are local (and global ones documented) #5

Closed matu3ba closed 3 years ago

matu3ba commented 3 years ago

This also is a workaround of not forcing plugin authors to provide commands for faster configuration of plugins: https://www.reddit.com/r/neovim/comments/p56fwb/psa_plugin_authors_create_vim_commands_for_your/

The idea is to

  1. get the list of loaded files
  2. use treesitter queries/lua tables to get local functions with scope of file/global functions
  3. provide the local/global function list per file

Preview inside treesitter/fzf or another options and dumb it inside a buffer for copying by the user.

Are there solutions to this use case already?

mfussenegger commented 3 years ago

See https://github.com/nvim-lua/nvim-lua-plugin-template/issues/2#issuecomment-900452800