Skip to content
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

toggleterm failed to load on startup #1

Open
TamaMcGlinn opened this issue Jan 1, 2025 · 1 comment
Open

toggleterm failed to load on startup #1

TamaMcGlinn opened this issue Jan 1, 2025 · 1 comment

Comments

@TamaMcGlinn
Copy link

After symlinking ~/.config/nvim to the nvim dir in this repo (i.e. "installing"), I get this error during the first run of nvim after it apparently installs a lot of things through mason:

Error detected while processing /home/tama/code/FlogDebug/nvim/init.lua:                                                                                                                                   
Failed to load `plugins.toggleterm`                                                                                                                                                                            
                                                                                                                                                                                                               
/home/tama/.config/nvim/lua/plugins/toggleterm.lua:27: attempt to index field 'opts' (a nil value)                                                                                                         
                                                                                                                                                                                                               
# stacktrace:                                                                                                                                                                                                  
  - ~/.config/nvim/lua/plugins/toggleterm.lua:27 _in_ **load**                                                                                                                                                 
  - ~/.config/nvim/lua/config/lazy.lua:25                                                                                                                                                                      
  - nvim/init.lua:3 

I also get this one on every next run:

Failed to run `config` for obsidian.nvim                                                                                                                                                                       
                                                                                                                                                                                                               
...ocal/share/nvim/lazy/obsidian.nvim/lua/obsidian/path.lua:402: FileNotFoundError: /home/tama/Documents/Obsidian/DEFCON                                                                                   
                                                                                                                                                                                                               
# stacktrace:                                                                                                                                                                                                  
  - /obsidian.nvim/lua/obsidian/path.lua:402 _in_ **resolve**                                                                                                                                                  
  - /obsidian.nvim/lua/obsidian/workspace.lua:79 _in_ **new_from_spec**                                                                                                                                        
  - /obsidian.nvim/lua/obsidian/workspace.lua:169 _in_ **get_workspace_for_cwd**                                                                                                                               
  - /obsidian.nvim/lua/obsidian/workspace.lua:206 _in_ **get_from_opts**                                                                                                                                       
  - /obsidian.nvim/lua/obsidian/client.lua:93 _in_ **new**                                                                                                                                                     
  - /obsidian.nvim/lua/obsidian/init.lua:95 _in_ **setup**                                                                                                                                                     
  - /usr/local/share/nvim/runtime/filetype.lua:36                                                                                                                                                              
  - /usr/local/share/nvim/runtime/filetype.lua:35

Looks like you're assuming some files. No big deal, but maybe you wanted to know.

@JohnWilliston
Copy link
Owner

Yes, sorry, that's for my use of Neovim to edit Obsidian projects. I do indeed have to assume that and define the workspace folder for the plugin to "know" that it's working on a particular Obsidian vault. Thanks for calling it out. I also think I resolved the toggleterm issue after posting my config to this repo. There's a spot I was using vim.opt instead of vim.o, which works fine on Windows but doesn't on Linux or macOS interestingly enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants