0

Hello I am new to both Neovim and Lua, I am trying to set up a configuration using the Lazy.nvim package manager and cannot get either the nanozuki/tabby.nvim or tris203/hawtkeys plugins working. Lazy will say that both plugins are loaded but when I try to use their commands it comes back that the commands don't exist, so I checked the source code and the commands are added during the setup function. So I believe that the problem is just that setup isn't being called, which I only know how to do by using require in the config function of the Lazy spec table for the plugin.

The only difference I can find is that the working plugins use a plain "lua" directory and these plugins use a lua/tabby and lua/hawtkeys directory. I have tried a couple ways of writing require, like require('tabby').setup() or require('lua/tabby').setup(), all of which just gave errors. Does the syntax for require change for this case and if so what do I use when the function I am trying to call isn't in a lua directory?

This is my configuration https://github.com/IronKing127/neovim (Note everything is in one file, and whatever Lazy lock is, to keep things simple. Oh and I no longer use hawtkeys because I figured out how to set keymaps manually but I am still interested in tabby and any other plugins that use this style.) Thank you for your time.

1
  • Welcome to Vi and Vim SE! I'm afraid your question is much too broad. Debugging your configuration is something you need to do yourself. Your question should also be self-contained, i.e. you need to post the minimal configuration that reproduces your issue as text in your question. Make sure to read Lazy.nvim's documentation on setting up plugins. Commented Mar 2 at 7:35

1 Answer 1

0

Ok I have had the chance to do more research and found that what require does can change a depending on a global table called package. So Lazy keeps all of the files for plugins in ~/.local/share/nvim/lazy where there is a list of directories named after your plugins. In side of that there will always be a lua folder which will be the base where lua will look when you call require in the config function of that plugin. So if there is any confusion about what path the require function needs to find any lua file just navigate to the plugins lua folder on your computer and find the file from there.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.