neovim-flake/.github/README.md

161 lines
8.3 KiB
Markdown
Raw Permalink Normal View History

2023-02-16 20:02:11 +01:00
<h1 align="center">neovim-flake</h1>
2023-02-16 20:27:57 +01:00
<div align="center">
<p>
2023-02-06 03:27:15 +01:00
<a href="https://github.com/NotAShelf/neovim-flake/releases/latest">
2023-02-06 03:43:04 +01:00
<img alt="Latest release" src="https://img.shields.io/github/v/release/NotAShelf/neovim-flake?style=for-the-badge&logo=nixos&color=C9CBFF&logoColor=D9E0EE&labelColor=302D41" />
2023-02-06 03:27:15 +01:00
</a>
2023-02-06 06:14:28 +01:00
<a href="https://github.com/NotAShelf/neovim-flake/pulse">
<img alt="Last commit" src="https://img.shields.io/github/last-commit/NotAShelf/neovim-flake?style=for-the-badge&logo=starship&color=8bd5ca&logoColor=D9E0EE&labelColor=302D41"/>
</a>
2023-02-06 03:27:15 +01:00
<a href="https://github.com/NotAShelf/neovim-flake/blob/main/LICENSE">
2023-02-06 03:43:04 +01:00
<img alt="License" src="https://img.shields.io/github/license/NotAShelf/neovim-flake?style=for-the-badge&logo=nixos&color=ee999f&logoColor=D9E0EE&labelColor=302D41" />
2023-02-06 03:27:15 +01:00
</a>
<a href="https://github.com/NotAShelf/neovim-flake/stargazers">
2023-02-06 03:43:04 +01:00
<img alt="Stars" src="https://img.shields.io/github/stars/NotAShelf/neovim-flake?style=for-the-badge&logo=nixos&color=c69ff5&logoColor=D9E0EE&labelColor=302D41" />
2023-02-06 03:27:15 +01:00
</a>
<a href="https://github.com/NotAShelf/neovim-flake/issues">
<img alt="Issues" src="https://img.shields.io/github/issues/NotAShelf/neovim-flake?style=for-the-badge&logo=bilibili&color=F5E0DC&logoColor=D9E0EE&labelColor=302D41" />
</a>
<a href="https://github.com/NotAShelf/neovim-flake">
<img alt="Repo Size" src="https://img.shields.io/github/repo-size/NotAShelf/neovim-flake?color=%23DDB6F2&label=SIZE&logo=codesandbox&style=for-the-badge&logoColor=D9E0EE&labelColor=302D41" />
</a>
2023-02-15 15:41:46 +01:00
<a href="https://liberapay.com/notashelf/" title="Donate to this project using Liberapay">
<img alt="Patreon donate button" src="https://img.shields.io/badge/liberapay-donate-yellow.svg?style=for-the-badge&logo=starship&color=f5a97f&logoColor=D9E0EE&labelColor=302D41" />
2023-02-06 06:14:28 +01:00
</a>
2023-02-16 20:27:57 +01:00
</p>
<!--
<p align="center">
<img src="https://stars.medv.io/NotAShelf/neovim-flake.svg", title="commits"/>
</p>
-->
<div align="center">
<a>
A highly modular, configurable, extensible and easy to use Neovim configuration wrapper written in Nix. Designed for flexibility and ease of use, this flake allows you to easily configure your Neovim instance with a few lines of Nix code.
</a>
</div>
2023-02-15 16:22:59 +01:00
</div>
2023-02-06 03:27:15 +01:00
---
2023-02-06 03:44:55 +01:00
<div align="center"><p>
2023-02-15 16:22:59 +01:00
**[<kbd><br>Get Started<br></kbd>][Get Started]**
2023-06-06 02:01:44 +02:00
**[<kbd><br>Documentation<br></kbd>][Documentation]**
**[<kbd><br>Help<br></kbd>][Help]**
**[<kbd><br>Contribute<br></kbd>][Contribute]**
**[<kbd><br>FAQ<br></kbd>][Faq]**
2023-02-15 16:22:59 +01:00
**[<kbd><br>Credits<br></kbd>][Credits]**
2023-02-06 03:27:15 +01:00
2023-02-06 03:44:55 +01:00
</p></div>
2023-02-15 16:22:59 +01:00
[Get Started]: #try-it-out
2023-02-06 03:32:13 +01:00
[Documentation]: #documentation
2023-02-15 16:22:59 +01:00
[Help]: #help
[Contribute]: #contributing
2023-02-06 03:32:13 +01:00
[FAQ]: #faq
2023-02-15 16:22:59 +01:00
[Credits]: #credits
2023-02-06 03:32:13 +01:00
2023-02-06 03:27:15 +01:00
---
2023-02-15 16:22:59 +01:00
## Get Started
2023-02-06 03:27:15 +01:00
2023-02-06 03:32:13 +01:00
### Using `nix`
2023-02-06 03:27:15 +01:00
2023-02-15 15:41:46 +01:00
If you would like to try out the configuration before even thinking about installing it, you can run:
2023-02-06 03:27:15 +01:00
```console
nix run github:notashelf/neovim-flake
```
2023-02-06 03:32:13 +01:00
2023-02-15 15:41:46 +01:00
to get a feel for the base configuration. The package exposes `.#nix` as the default package. You may use `.#nix`, `.#tidal` or `.#maximal` to get different configurations.
2023-02-06 03:27:15 +01:00
2023-02-17 12:29:33 +01:00
It is as simple as changing the target output to get a different configuration. For example, to get a configuration with `tidal` support, run:
2023-02-06 03:27:15 +01:00
```console
nix run github:notashelf/neovim-flake#tidal
```
Similar instructions will apply for `nix profile install`.
2023-06-06 02:01:44 +02:00
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
2023-02-15 15:41:46 +01:00
See the [neovim-flake Manual](https://notashelf.github.io/neovim-flake/) for detailed installation guide(s), configuration, available options, and release notes.
2023-02-06 03:27:15 +01:00
If you want to dive right into trying **neovim-flake** you can get a fully featured configuration with `nix` language support by running:
2023-02-03 22:35:00 +01:00
```console
nix run github:notashelf/neovim-flake
```
Please create an issue on the [issue tracker](../../../issues) if you find the documentation lacking or confusing. I also appreciate any contributions to the documentation.
2023-02-04 02:16:26 +01:00
2023-02-03 22:35:00 +01:00
## Help
You can create an issue on the [issue tracker](../../../issues) to ask questions or report bugs. I am not yet on spaces like matrix or IRC, so please use the issue tracker for now.
2023-02-15 16:22:59 +01:00
## Contributing
I am always looking for new ways to help improve this flake. If you would like to contribute, please read the [contributing guide](CONTRIBUTING.md) before submitting a pull request. You can also create an issue on the [issue tracker](../../../issues) before submitting a pull request if you would like to discuss a feature or bug fix.
2023-02-15 16:22:59 +01:00
## Philosophy
2023-02-06 03:27:15 +01:00
The philosophy behind this flake configuration is to create an easily configurable and reproducible Neovim environment. While it does sacrifice in size
2023-06-06 02:01:44 +02:00
(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, 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
2023-02-04 02:16:26 +01:00
third party dependencies (such as tree-sitter grammars, language servers, and more).
2023-02-06 03:27:15 +01:00
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.
2023-02-06 03:27:15 +01:00
## FAQ
**Q**: Why is this flake so big?
2023-02-17 12:29:33 +01:00
<br/>
2023-02-15 15:41:46 +01:00
**A**: I have sacrificed in size in order to provide a highly configurable and reproducible Neovim environment. A binary cache is provided to
2023-02-06 03:27:15 +01:00
eleminate the need to build the flake from source, but it is still a large flake. If you do not need all the features, you can use the default `nix` output
instead of the `maximal` output. This will reduce size by a lot, but you will lose some language specific features.
2023-02-17 12:29:33 +01:00
<br/><br/>
2023-02-06 03:27:15 +01:00
2023-02-15 15:41:46 +01:00
**Q**: Will you try to make this flake smaller?
2023-02-17 12:29:33 +01:00
<br/>
2023-02-15 15:41:46 +01:00
**A**: Yes. As a matter of fact, I am actively working on making this flake smaller. Unfortunately the process of providing everything possible by itself makes the flake large. Best I can do is to optimize the flake as much as possible by selecting plugins that are small and fast. And the binary cache, so at least you don't have to build it from source.
2023-02-17 12:29:33 +01:00
<br/><br/>
2023-02-15 15:41:46 +01:00
2023-04-15 10:33:14 +02:00
**Q**: Will you use a plugin manager/language server installer?
2023-02-17 12:29:33 +01:00
<br/>
2023-04-15 10:33:14 +02:00
**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.
2023-02-17 12:29:33 +01:00
<br/><br/>
2023-02-06 03:27:15 +01:00
2023-06-06 02:01:44 +02:00
**Q**: Can you add _X_?
2023-02-17 12:29:33 +01:00
<br/>
2023-06-06 02:01:44 +02:00
**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.
2023-02-15 15:41:46 +01:00
2023-02-15 16:22:59 +01:00
## Credits
### Contributors
2023-04-15 10:33:14 +02:00
Special thanks to
2023-02-15 16:22:59 +01:00
- [@fufexan](https://github.com/fufexan) - For the transition to flake-parts
2023-05-10 11:21:36 +02:00
- [@FlafyDev](https://github.com/FlafyDev) - For getting the home-manager to work
- [@n3oney](https://github.com/n3oney) - For making custom keybinds finally possible
- [@horriblename](https://github.com/horriblename) - For actively implementing planned features and quality of life updates
2023-02-15 16:22:59 +01:00
2023-04-15 10:33:14 +02:00
and everyone who has submitted issues or pull requests!
2023-02-15 16:22:59 +01:00
### Inspiration
2023-02-17 12:29:33 +01:00
This configuration borrows from and is based on a few other configurations, including:
2023-02-15 16:22:59 +01:00
2023-06-06 02:01:44 +02:00
- [@jordanisaacs's](https://github.com/jordanisaacs) [neovim-flake](https://github.com/jordanisaacs/neovim-flake)
2023-02-15 16:22:59 +01:00
- [@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)
- [@gvolpe's](https://github.com/gvolpe) [neovim-flake](https://github.com/gvolpe/neovim-flake)
I am grateful for their previous work and inspiration.
2023-02-15 15:47:40 +01:00
<br/>
2023-02-06 03:27:15 +01:00
---