Even though the plugin has been loaded, as evidenced by the "Compiling textmate module..." message, the user commands (TxMtEnable, TxMtDisable, etc) are not defined.
I haven't written any plugins myself, but judging by what I've seen in other plugins I think you ought to export a module with the required functions from the lua directory and define the commands from the plugin directory -- I'm not sure what the usual way to refer to this is, but where those instructions are placed affects when and how they are loaded by (neo)vim.
P.S.: The README says that the plugin is loaded with require('textmate'), but that won't work because the module is called nvim-textmate (the name coincides with the directory containing the init file under lua). I attempted loading the plugin with both require('nvim-textmate') and require('nvim-textmate').setup(), but only the latter appeared to have any effect.
Even though the plugin has been loaded, as evidenced by the "Compiling textmate module..." message, the user commands (
TxMtEnable,TxMtDisable, etc) are not defined.I haven't written any plugins myself, but judging by what I've seen in other plugins I think you ought to export a module with the required functions from the
luadirectory and define the commands from theplugindirectory -- I'm not sure what the usual way to refer to this is, but where those instructions are placed affects when and how they are loaded by (neo)vim.P.S.: The README says that the plugin is loaded with
require('textmate'), but that won't work because the module is callednvim-textmate(the name coincides with the directory containing the init file underlua). I attempted loading the plugin with bothrequire('nvim-textmate')andrequire('nvim-textmate').setup(), but only the latter appeared to have any effect.