Skip to main content
Ari Sweedler's user avatar
Ari Sweedler's user avatar
Ari Sweedler's user avatar
Ari Sweedler
  • Member for 7 years, 1 month
  • Last seen more than a week ago
comment
How to run a callback when an nvim plugin is loaded. Can I tie this back to running a callback when a plugin is required/imported?
Initialization works the same way as with regular plugins - with regular plugins I will have some code in my ./plugin folder (not my ./pack/start/* folder(s)... this ./plugin code will run unequivocally on startup. However, if I only wanted to run that code when I packadd matchit or something like that... then how do I do THAT. What is the mechanism of step 3? A plugin will have it's own ``./pack/opt/bundle/some_plugin/plugin/init.lua` folder to initialize itself. But I want to do additional work in my ./plugin/additional_config_for_some_plugin.lua file
comment
How to load the global "vim" object so lua-language-server stops complaining
Another thing I will do is load hs objects when I open a file up in ~/.hammerspoon. I love that I can easily code up this power in my ftplugin file, but DANG I'm struggling
Loading…
comment
How to run a callback when an nvim plugin is loaded. Can I tie this back to running a callback when a plugin is required/imported?
I want to run one-time setup when my optional plugin (to be loaded with packadd) is loaded. But I cannot find the Autocmd to run after a packadd. Maybe there is an autocmd after a require was my next thought.
Loading…
awarded
awarded
Loading…
Loading…
revised
Splits on different monitors
added 134 characters in body
Loading…
comment
Splits on different monitors
@Rich You're right, the command should have been --listen. I will edit my answer
awarded
Loading…
comment
How can I view a diff for a single file from a diff file with multiple files?
@D.BenKnoble when you’re right, you’re right 😂… literally in the title… hard to pull myself out of the context of achieving the solution (the vimdiff window) and back to the ask! When the question said patch I didn’t think it implied a git diff. It no longer says patch tho.
comment
How can I view a diff for a single file from a diff file with multiple files?
@D.BenKnoble good point. Although I likely suspect OP doesn’t even want to use git diff without a specific filepath for diff creation in the first place…
revised
Loading…
Loading…
awarded
awarded