Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/manual/configuring.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Configuring nvf {#ch-configuring}

This section gives a general overview of how to configure nvf. If something
specific you are looking for isn't covered here, try searching it in the
[options reference](#ch-options)

```{=include=} chapters
configuring/keymaps.md
configuring/custom-package.md
configuring/custom-plugins.md
configuring/overriding-plugins.md
Expand Down
35 changes: 35 additions & 0 deletions docs/manual/configuring/keymaps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Custom keymaps {#ch-keymaps}

Some plugin modules provide keymap options for convenience. If a keymap is not
provided by such options, you can easily add custom keymaps yourself via
`vim.keymaps`:

```nix
{...}: {
config.vim.keymaps = [
{
key = "<leader>m";
mode = "n";
silent = true;
action = ":make<CR>";
}
{
key = "<leader>l";
mode = ["n" "x"];
silent = true;
action = "<cmd>cnext<CR>";
}
{
key = "<leader>k";
mode = ["n" "x"];
lua = true;
action = ''
function()
require('foo').do_thing()
print('did thing')
end
'';
}
];
}
```
2 changes: 1 addition & 1 deletion docs/manual/configuring/languages/lsp.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LSP Custom Packages/Command {#sec-languages-custom-lsp-packages}

In any of the `opt.languages.<language>.lsp.package` options you can provide
In any of the `vim.languages.<language>.lsp.package` options you can provide
your own LSP package, or provide the command to launch the language server, as a
list of strings. You can use this to skip automatic installation of a language
server, and instead use the one found in your `$PATH` during runtime, for
Expand Down
8 changes: 6 additions & 2 deletions docs/manual/default-configs/maximal.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ $ nix run github:notashelf/nvf#maximal -- test.nix
It is the same fully configured Neovim as with the [Nix](#sec-default-nix)
configuration, but with every supported language enabled.

::: {.note} Running the maximal config will download _a lot_ of packages as it
is downloading language servers, formatters, and more. :::
::: {.note}

Running the maximal config will download _a lot_ of packages as it is
downloading language servers, formatters, and more.

:::
8 changes: 8 additions & 0 deletions docs/manual/installation/custom-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ build independently from your system configuration while also possibly sharing
it with others. The next two chapters will detail specific usage of such a setup
for a package output in the context of NixOS or Home-Manager installation.

::: {.note}

Once you have nvf installed, head over to [](#ch-configuring) for an overview of
how to configure nvf, or [](#ch-options) for the full reference of all available
options

:::

```{=include=} chapters
standalone/nixos.md
standalone/home-manager.md
Expand Down
6 changes: 3 additions & 3 deletions docs/manual/installation/modules/home-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ configure **nvf**.

::: {.note}

**nvf** exposes a lot of options, most of which are not referenced in the
installation sections of the manual. You may find all available options in the
[appendix](https://notashelf.github.io/nvf/options)
Now that you have nvf installed, head over to [](#ch-configuring) for an
overview of how to configure nvf, or [](#ch-options) for the full reference of
all available options

:::
6 changes: 3 additions & 3 deletions docs/manual/installation/modules/nixos.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ configure **nvf**.

::: {.note}

**nvf** exposes a lot of options, most of which are not referenced in the
installation sections of the manual. You may find all available options in the
[appendix](https://notashelf.github.io/nvf/options)
Now that you have nvf installed, head over to [](#ch-configuring) for an
overview of how to configure nvf, or [](#ch-options) for the full reference of
all available options

:::
8 changes: 8 additions & 0 deletions docs/manual/installation/standalone/home-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,11 @@ the default theme enabled. You may use other options inside `config.vim` in
};
}
```

::: {.note}

Now that you have nvf installed, head over to [](#ch-configuring) for an
overview of how to configure nvf, or [](#ch-options) for the full reference of
all available options

:::
11 changes: 10 additions & 1 deletion docs/manual/installation/standalone/nixos.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,13 @@ the default theme enabled. You may use other options inside `config.vim` in
};
};
};
}```
}
```

::: {.note}

Now that you have nvf installed, head over to [](#ch-configuring) for an
overview of how to configure nvf, or [](#ch-options) for the full reference of
all available options

:::
Loading