2024-07-20 10:30:48 +02:00
|
|
|
# DAG entries in nvf {#ch-dag-entries}
|
|
|
|
|
|
|
|
From the previous chapter, it should be clear that DAGs are useful, because you
|
|
|
|
can add code that relies on other code. However, if you don't know what the
|
|
|
|
entries are called, it's hard to do that, so here is a list of the internal
|
|
|
|
entries in nvf:
|
|
|
|
|
2024-09-28 20:28:17 +02:00
|
|
|
## `vim.luaConfigRC` (top-level DAG) {#ch-vim-luaconfigrc}
|
2024-07-20 10:30:48 +02:00
|
|
|
|
|
|
|
1. (`luaConfigPre`) - not a part of the actual DAG, instead, it's simply
|
|
|
|
inserted before the rest of the DAG
|
|
|
|
2. `globalsScript` - used to set globals defined in `vim.globals`
|
|
|
|
3. `basic` - used to set basic configuration options
|
2024-09-28 20:28:17 +02:00
|
|
|
4. `optionsScript` - used to set options defined in `vim.o`
|
2024-11-25 17:16:46 +01:00
|
|
|
5. `theme` (this is simply placed before `pluginConfigs` and `lazyConfigs`,
|
|
|
|
meaning that surrounding entries don't depend on it) - used to set up the
|
|
|
|
theme, which has to be done before other plugins
|
2024-11-04 16:50:50 +01:00
|
|
|
6. `lazyConfigs` - `lz.n` and `lzn-auto-require` configs. If `vim.lazy.enable`
|
|
|
|
is false, this will contain each plugin's config instead.
|
|
|
|
7. `pluginConfigs` - the result of the nested `vim.pluginRC` (internal option,
|
2024-09-28 20:28:17 +02:00
|
|
|
see the [Custom Plugins](/index.xhtml#ch-custom-plugins) page for adding your
|
|
|
|
own plugins) DAG, used to set up internal plugins
|
2024-11-04 16:50:50 +01:00
|
|
|
8. `extraPluginConfigs` - the result of `vim.extraPlugins`, which is not a
|
2024-07-20 10:30:48 +02:00
|
|
|
direct DAG, but is converted to, and resolved as one internally
|
2024-11-04 16:50:50 +01:00
|
|
|
9. `mappings` - the result of `vim.maps`
|