You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wrapperModules/n/neovim/post_desc.md
+81-4Lines changed: 81 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,27 @@ By default, the specs will run after it. Add `before = [ "INIT_MAIN" ]` to the s
6
6
7
7
---
8
8
9
+
- Your `config.settings.config_directory` can point to an impure path (or lua inline value)
10
+
11
+
Use this for a quick feedback mode while editing, and then switch it back to the pure path when you are done! (or make an option for it)
12
+
13
+
---
14
+
15
+
- lazy loading
16
+
17
+
If you mark a spec as lazy, (or mark a parent spec and don't override the value in the child spec by default),
18
+
it will be placed in `pack/myNeovimPackages/opt/<pname>` on the runtime path.
19
+
20
+
It will not be loaded yet. Use `vim.cmd.packadd("<pname>")` to load it via `lua` (or `vimscript` or `fennel`) at a time of your choosing.
21
+
22
+
There are great plugins for this.
23
+
24
+
See [lze](https://github.com/BirdeeHub/lze) and [lz.n](https://github.com/nvim-neorocks/lz.n), which work beautifully with this method of installing plugins.
25
+
26
+
They also work great with the builtin `neovim` plugin manager, `vim.pack.add`!
27
+
28
+
---
29
+
9
30
- Use `nvim-lib.mkPlugin` to build plugins from sources outside nixpkgs (e.g., git flake inputs)
0 commit comments