Closed hatute closed 2 years ago
So the issue here is that util
is something I use internally in workspaces. You can totally access it if you want (require "workspaces.util"
), but you likely just want to use the /
character in place of util.path.sep
. The full line would be:
path = vim.fn.stdpath("data") .. "/workspaces",
But you really don't need to pass in any config if you aren't modifying anything. You don't even need to run the setup()
function! The only reason you need the setup is to modify the default settings. The only config that most people touch is hooks, which can be done by following the examples at the bottom of the readme. So if you want to setup hooks, or change the defaults you need the setup function.
Let me know if that works! And it's really my bad here, for leaving the util.path.sep
, that would be confusing! I'll update the readme.
@natecraddock Yea! Thank you for your explanation and it works with "slash". I want to say, the function of "util.path.seq" is very useful, especially for multi-os situation.
At first, thank you for this wonderful plugin, really appreciate it.
During my installation, I directly copied the configuration code from the "Installation" part. And this error emerged. I am new to lua. Could you give me any hints about this?
It looks like nvim can't find the location of "util".
Here is my config for workspaces.nvim