-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Session Directory is not set. #1
Comments
Hi chris. Are you sure your sessions dir exist? What if you setup addon path as string, rather than using fn.stdpath ? |
Hi @JoseConseco and thanks for your feedback! Unfortunately it does not seem to work. Your Plugin seems to register just fine with telescope (":Telescope sessions_picker" is there and gives me the error of missing directory) I also tried an appending / for the directory (little mismatch between doc and code (local sessions_dir = vim.fn.stdpath('data') ..'/session/')) This is my init.lua:
and in ./lua/setup/session_picker/init.lua:
The directory is definitely up and running (used by Shatur/neovim-session-manager" as Session Manager). Any other hints? I'm on Mac with nvim 6.1 via https://github.com/qvacua/vimr Bye the way, I noticed that I had to do ":PackerCompile" in order to install and uninstall your plugin correctly ... not sure what that is about. |
@JoseConseco I am facing this issue as well. I really want to use this plugin as it fits my workflow. but this issue is a bit of a blocker. I am on Ubuntu 20.04 and neovim 7.0 |
I see the problem(s) now..
Here is what worked for me:
But the following does not work:
and neither does the following work:
I think bash variable subsitution should work, that will make the configuration portable. |
@JoseConseco I'm guessing that this is where the config should be loaded. With a setup like the one in your screenshot the |
Hi and thanks for the plugin!
I tried to set a custom session directory, but it does not seem to work and I get the error that the directory is not existing (referencing to the default "session" dir instead of my set "sessionS" dir (which exists and is used by other plugins)).
I mainly just copied and paste the config:
require('telescope').load_extension('sessions_picker') require'telescope'.setup { extensions = { sessions_picker = { sessions_dir = vim.fn.stdpath('data') ..'/sessions/', } }, }
I tried some debugging, but I'm not good in Lua and just get gibberish when I tried to "print_r(ext_config)" in your setup function
The text was updated successfully, but these errors were encountered: