Comments (7)
You can change the directory where Paq downloads stuff with the setup
function, but that won't change neovim's runtime path.
Under.local/site/nvim/pack
, I keep three directories:
paqs
, the usual paq-directorylocal
, where I put the plugins I developtest
, where Paq puts plugins when running the "test" suite
I have my term-multiplexer set-up so I can open new a terminal in .local/site/nvim/pack/local/start
, and get to work quickly.
The only risk with putting your plugin in paqs
is that if it isn't listed in your config, Paq will delete it. Once I accidentally let Paq delete itself that way, without pushing the latest commits, true story. 🤦♂️
from paq-nvim.
+1 for something like paq '~/vim/personal'
Maybe can we just create symbolic link when local filesystem is used?
Paq is best plugin manager. Thanks @savq
from paq-nvim.
I was a bit busy when I wrote the first answer so that was phrased wrong.
My point was that Paq doesn't modify the runtimepath
, and that neovim has easier ways to track a local plugin, namely:
- Add it to a directory in
packpath
(different from the one Paq uses) - Modify the
runtimepath
directly
I sorta explained the first option in the first comment (at least how I use it), but honestly, the best way to understand is to read :h packages
.
The alternative, just requires you to concatenate the path to the plugin to your runtimepath
:
vim.o.runtimepath = vim.o.runtimepath .. ",~/vim/personal"
Yes, it looks clunky because Lua doesn't have a concat-assignment operator (you can write it in VimL if you prefer), but it is a one liner solution that doesn't require adding anything to Paq.
Paq is best plugin manager. Thanks @savq
I wish. Thank you for using it 😄
from paq-nvim.
I've added this to the docs. Gotta keep that readme lean.
from paq-nvim.
👍 to this idea.
from paq-nvim.
Thank you so much @savq !! Learned a lot with this!
from paq-nvim.
@savq it might be worth adding a small blurb to this explanation you gave on the readme.
from paq-nvim.
Related Issues (20)
- Question about paq vs paqs folders HOT 1
- self-installing example HOT 2
- PaqClean command removes all packages except paq-nvim HOT 2
- Add possibility to pass `opt true` on paq setup HOT 1
- Feature Request: SSH HOT 2
- `opt = true` not respected HOT 2
- [Feature] custom commands for updating/installing HOT 3
- bug in bootstrapping docs HOT 1
- Repo owner not taken under consideration when trying to install plugin with same name
- [Feature Discussion] shorten way to call a `:Command` on `run`
- Unable to run setup hook for gitsigns HOT 3
- [Feature Request] Support for tagging certain versions HOT 1
- Synchronous plugins installation HOT 1
- What neovim version is paq trying to target? HOT 3
- Tracking issue for Paq 2.0 HOT 9
- Error when using extra parameters with plugins. HOT 2
- I can't get paq-nvim to work after following all the instructions. HOT 1
- Docs improvement ideas
- errors on first installation of `nvim-treesitter` HOT 5
- cur_hash is always euqal prev_hash, even if a package got updated, leaving the log file empty HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paq-nvim.