mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
docs: clean up documentation directory
This commit is contained in:
parent
b8d2c23eaf
commit
294b712c15
10 changed files with 100 additions and 60 deletions
20
.github/README.md
vendored
20
.github/README.md
vendored
|
@ -41,10 +41,10 @@
|
||||||
<div align="center"><p>
|
<div align="center"><p>
|
||||||
|
|
||||||
**[<kbd> <br> Get Started <br> </kbd>][Get Started]**
|
**[<kbd> <br> Get Started <br> </kbd>][Get Started]**
|
||||||
**[<kbd> <br> Documentation <br> </kbd>][Documentation]**
|
**[<kbd> <br> Documentation <br> </kbd>][Documentation]**
|
||||||
**[<kbd> <br> Help <br> </kbd>][Help]**
|
**[<kbd> <br> Help <br> </kbd>][Help]**
|
||||||
**[<kbd> <br> Contribute <br> </kbd>][Contribute]**
|
**[<kbd> <br> Contribute <br> </kbd>][Contribute]**
|
||||||
**[<kbd> <br> FAQ <br> </kbd>][Faq]**
|
**[<kbd> <br> FAQ <br> </kbd>][Faq]**
|
||||||
**[<kbd> <br> Credits <br> </kbd>][Credits]**
|
**[<kbd> <br> Credits <br> </kbd>][Credits]**
|
||||||
|
|
||||||
</p></div>
|
</p></div>
|
||||||
|
@ -78,7 +78,7 @@ nix run github:notashelf/neovim-flake#tidal
|
||||||
|
|
||||||
Similar instructions will apply for `nix profile install`.
|
Similar instructions will apply for `nix profile install`.
|
||||||
|
|
||||||
P.S. The `maximal` configuration is *massive* and will take a while to build. To get a feel for the configuration, use the default `nix` or `tidal` configurations.
|
P.S. The `maximal` configuration is _massive_ and will take a while to build. To get a feel for the configuration, use the default `nix` or `tidal` configurations.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
@ -103,8 +103,8 @@ I am always looking for new ways to help improve this flake. If you would like t
|
||||||
## Philosophy
|
## Philosophy
|
||||||
|
|
||||||
The philosophy behind this flake configuration is to create an easily configurable and reproducible Neovim environment. While it does sacrifice in size
|
The philosophy behind this flake configuration is to create an easily configurable and reproducible Neovim environment. While it does sacrifice in size
|
||||||
(which I know some users will find *disagreeable*), it offers a lot of flexibility and customizability in exchange for the large size of the flake inputs.
|
(which I know some users will find _disagreeable_), it offers a lot of flexibility and customizability in exchange for the large size of the flake inputs.
|
||||||
The KISS (Keep it simple, stupid) principle has been abandoned here, however, you *can* ultimately leverage the flexibility of this flake to declare a configuration that follows KISS principles, it is very easy to bring your own plugins and configurations from non-nix. What this flake is meant to be does eventually fall into your hands. Whether you are a developer, writer, or live coder (see tidal cycles below!), you can quickly craft a config that suits every project's need. Think of it like a distribution of Neovim that takes advantage of pinning vim plugins and
|
The KISS (Keep it simple, stupid) principle has been abandoned here, however, you _can_ ultimately leverage the flexibility of this flake to declare a configuration that follows KISS principles, it is very easy to bring your own plugins and configurations from non-nix. What this flake is meant to be does eventually fall into your hands. Whether you are a developer, writer, or live coder, you can quickly craft a config that suits every project's need. Think of it like a distribution of Neovim that takes advantage of pinning vim plugins and
|
||||||
third party dependencies (such as tree-sitter grammars, language servers, and more).
|
third party dependencies (such as tree-sitter grammars, language servers, and more).
|
||||||
|
|
||||||
One should never get a broken config when setting options. If setting multiple options results in a broken Neovim, file an issue! Each plugin knows when another plugin which allows for smart configuration of keybindings and automatic setup of things like completion sources and languages.
|
One should never get a broken config when setting options. If setting multiple options results in a broken Neovim, file an issue! Each plugin knows when another plugin which allows for smart configuration of keybindings and automatic setup of things like completion sources and languages.
|
||||||
|
@ -128,9 +128,9 @@ instead of the `maximal` output. This will reduce size by a lot, but you will lo
|
||||||
**A**: No. If you feel the need to ask that question, then you have missed the whole point of using nix and ultimately this flake. The whole reason we use nix is to be able to handle EVERYTHING declaratively, well including the LSP and plugin installations.
|
**A**: No. If you feel the need to ask that question, then you have missed the whole point of using nix and ultimately this flake. The whole reason we use nix is to be able to handle EVERYTHING declaratively, well including the LSP and plugin installations.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
**Q**: Can you add *X*?
|
**Q**: Can you add _X_?
|
||||||
<br/>
|
<br/>
|
||||||
**A**: Maybe. Open an issue using the appropriate template and I will consider it. I do not intend to add *every plugin that is in existence*, but I will consider it, should it offer something useful to the flake.
|
**A**: Maybe. Open an issue using the appropriate template and I will consider it. I do not intend to add _every plugin that is in existence_, but I will consider it, should it offer something useful to the flake.
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
|
@ -149,9 +149,9 @@ and everyone who has submitted issues or pull requests!
|
||||||
|
|
||||||
This configuration borrows from and is based on a few other configurations, including:
|
This configuration borrows from and is based on a few other configurations, including:
|
||||||
|
|
||||||
|
- [@jordanisaacs's](https://github.com/jordanisaacs) [neovim-flake](https://github.com/jordanisaacs/neovim-flake)
|
||||||
- [@sioodmy's](https://github.com/sioodmy) [dotfiles](https://github.com/sioodmy/dotfiles)
|
- [@sioodmy's](https://github.com/sioodmy) [dotfiles](https://github.com/sioodmy/dotfiles)
|
||||||
- [@wiltaylor's](https://github.com/wiltaylor) [neovim-flake](https://github.com/wiltaylor/neovim-flake)
|
- [@wiltaylor's](https://github.com/wiltaylor) [neovim-flake](https://github.com/wiltaylor/neovim-flake)
|
||||||
- [@jordanisaacs's](https://github.com/jordanisaacs) [neovim-flake](https://github.com/jordanisaacs/neovim-flake)
|
|
||||||
- [@gvolpe's](https://github.com/gvolpe) [neovim-flake](https://github.com/gvolpe/neovim-flake)
|
- [@gvolpe's](https://github.com/gvolpe) [neovim-flake](https://github.com/gvolpe/neovim-flake)
|
||||||
|
|
||||||
I am grateful for their previous work and inspiration.
|
I am grateful for their previous work and inspiration.
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
[[ch-hm-module]]
|
|
||||||
== Home Manager
|
|
||||||
|
|
||||||
The Home Manager module allows us to customize the different `vim` options. To use it, we first add the input flake.
|
|
||||||
|
|
||||||
[source,nix]
|
|
||||||
----
|
|
||||||
{
|
|
||||||
neovim-flake = {
|
|
||||||
url = github:notashelf/neovim-flake;
|
|
||||||
# you can override input nixpkgs
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
----
|
|
||||||
|
|
||||||
Followed by importing the HM module.
|
|
||||||
|
|
||||||
[source,nix]
|
|
||||||
----
|
|
||||||
{
|
|
||||||
imports = [ neovim-flake.homeManagerModules.default ];
|
|
||||||
}
|
|
||||||
----
|
|
||||||
|
|
||||||
Then we should be able to use the given module. E.g.
|
|
||||||
|
|
||||||
[source,nix]
|
|
||||||
----
|
|
||||||
{
|
|
||||||
programs.neovim-flake = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
# your settings need to go into the settings attrset
|
|
||||||
settings = {
|
|
||||||
vim.viAlias = false;
|
|
||||||
vim.vimAlias = true;
|
|
||||||
vim.lsp = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
----
|
|
|
@ -16,12 +16,12 @@
|
||||||
|
|
||||||
</para>
|
</para>
|
||||||
</preface>
|
</preface>
|
||||||
<xi:include href="try-it-out.xml"/>
|
<xi:include href="manual/try-it-out.xml"/>
|
||||||
<xi:include href="default-configs.xml"/>
|
<xi:include href="manual/default-configs.xml"/>
|
||||||
<xi:include href="custom-configs.xml"/>
|
<xi:include href="manual/custom-configs.xml"/>
|
||||||
<xi:include href="custom-plugins.xml"/>
|
<xi:include href="manual/custom-plugins.xml"/>
|
||||||
<xi:include href="home-manager.xml"/>
|
<xi:include href="manual/home-manager.xml"/>
|
||||||
<xi:include href="languages.xml"/>
|
<xi:include href="manual/languages.xml"/>
|
||||||
<appendix xml:id="ch-options">
|
<appendix xml:id="ch-options">
|
||||||
<title>Configuration Options</title>
|
<title>Configuration Options</title>
|
||||||
<xi:include href="./nmd-result/neovim-flake-options.xml" />
|
<xi:include href="./nmd-result/neovim-flake-options.xml" />
|
||||||
|
|
80
docs/manual/home-manager.adoc
Normal file
80
docs/manual/home-manager.adoc
Normal file
|
@ -0,0 +1,80 @@
|
||||||
|
[[ch-hm-module]]
|
||||||
|
== Home Manager
|
||||||
|
|
||||||
|
The Home Manager module allows us to customize the different `vim` options. To use it, we first add the input flake.
|
||||||
|
|
||||||
|
[source,nix]
|
||||||
|
----
|
||||||
|
{
|
||||||
|
neovim-flake = {
|
||||||
|
url = github:notashelf/neovim-flake;
|
||||||
|
# you can override input nixpkgs
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
Followed by importing the HM module.
|
||||||
|
|
||||||
|
[source,nix]
|
||||||
|
----
|
||||||
|
{
|
||||||
|
imports = [ neovim-flake.homeManagerModules.default ];
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
Then we should be able to use the given module. E.g.
|
||||||
|
|
||||||
|
[source,nix]
|
||||||
|
----
|
||||||
|
{
|
||||||
|
programs.neovim-flake = {
|
||||||
|
|
||||||
|
enable = true;
|
||||||
|
# your settings need to go into the settings attrset
|
||||||
|
settings = {
|
||||||
|
vim.viAlias = false;
|
||||||
|
vim.vimAlias = true;
|
||||||
|
vim.lsp = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
=== Custom vim/neovim plugins
|
||||||
|
|
||||||
|
It is possible to add custom plugins to your configuration by using the `vim.startPlugins` option and the this flake's lua DAG library.
|
||||||
|
|
||||||
|
Start by adding it to startPlugins. This example uses nvim-surround, but the process will be similar for other plugins as well.
|
||||||
|
|
||||||
|
[source,nix]
|
||||||
|
----
|
||||||
|
{
|
||||||
|
programs.neovim-flake = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
vim.startPlugins = [ pkgs.vimPlugins.nvim-surround ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
Followed by requiring the plugin, should it need one, in the lua DAG. Please note that you're able to name the DAG to however you want, the name will add a `--SECTION <name>` in the init.vim, under which it will be initialized. `lib.nvim.dag.entryAfter ["name"]` could also be used to initialize a plugin only after a previous plugin has beeni initialize
|
||||||
|
Your final setup will likely look like this, where nvim-flake refers to your flake input or fetch.
|
||||||
|
|
||||||
|
[source,nix]
|
||||||
|
----
|
||||||
|
{
|
||||||
|
programs.neovim-flake = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
vim.startPlugins = [ pkgs.vimPlugins.nvim-surround ];
|
||||||
|
luaConfigRC.nvim-surround = nvim-flake.lib.nvim.dag.entryAnywhere '' # nvim-flake is a reference to the flake. Please change this accordingly to your config.
|
||||||
|
require("nvim-surround").setup()
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
----
|
|
@ -55,3 +55,7 @@ https://github.com/notashelf[notashelf]:
|
||||||
* `vim.utility.colorizer` has been renamed to `vim.utility.ccc` after the plugin it uses
|
* `vim.utility.colorizer` has been renamed to `vim.utility.ccc` after the plugin it uses
|
||||||
|
|
||||||
* Color preview via `nvim-colorizer.lua`
|
* Color preview via `nvim-colorizer.lua`
|
||||||
|
|
||||||
|
* Updated Lualine statusline UI
|
||||||
|
|
||||||
|
* Cleaned up documentation
|
||||||
|
|
Loading…
Reference in a new issue