mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-14 16:55:57 +01:00
Compare commits
11 commits
1ce62335e1
...
21f48253d0
Author | SHA1 | Date | |
---|---|---|---|
|
21f48253d0 | ||
|
64e79a9f4c | ||
fe9bcf224b | |||
6e8bb14567 | |||
2a37873f8a | |||
a12a26e405 | |||
d2d2c2a227 | |||
fde298805c | |||
56a8476bc1 | |||
|
8c5a63e72c | ||
|
636eba77d7 |
6 changed files with 31 additions and 78 deletions
52
.github/README.md
vendored
52
.github/README.md
vendored
|
@ -1,9 +1,10 @@
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="assets/nvf-logo-work.svg" alt="nvf Logo" width="200">
|
<img src="assets/nvf-logo-work.svg" alt="nvf Logo" width="200">
|
||||||
|
<h1 ❄️ nvf</h1>
|
||||||
</div>
|
</div>
|
||||||
<h1 align="center">❄️ nvf</h1>
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<p>
|
<p>
|
||||||
<a href="https://github.com/NotAShelf/nvf/releases/latest">
|
<a href="https://github.com/NotAShelf/nvf/releases/latest">
|
||||||
<img alt="Latest release" src="https://img.shields.io/github/v/release/NotAShelf/nvf?style=for-the-badge&logo=nixos&color=C9CBFF&logoColor=D9E0EE&labelColor=302D41" />
|
<img alt="Latest release" src="https://img.shields.io/github/v/release/NotAShelf/nvf?style=for-the-badge&logo=nixos&color=C9CBFF&logoColor=D9E0EE&labelColor=302D41" />
|
||||||
</a>
|
</a>
|
||||||
|
@ -22,7 +23,8 @@
|
||||||
<a href="https://github.com/NotAShelf/nvf">
|
<a href="https://github.com/NotAShelf/nvf">
|
||||||
<img alt="Repo Size" src="https://img.shields.io/github/repo-size/NotAShelf/nvf?color=%23DDB6F2&label=SIZE&logo=codesandbox&style=for-the-badge&logoColor=D9E0EE&labelColor=302D41" />
|
<img alt="Repo Size" src="https://img.shields.io/github/repo-size/NotAShelf/nvf?color=%23DDB6F2&label=SIZE&logo=codesandbox&style=for-the-badge&logoColor=D9E0EE&labelColor=302D41" />
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://stars.medv.io/NotAShelf/nvf.svg", title="stars"/>
|
<img src="https://stars.medv.io/NotAShelf/nvf.svg", title="stars"/>
|
||||||
|
@ -36,19 +38,18 @@
|
||||||
Nix code.
|
Nix code.
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
|
||||||
|
|
||||||
> [!WARNING]
|
|
||||||
> Main branch is only updated for small, non-breaking changes. For the latest version of neovim-flake, please see
|
|
||||||
> [the list of branches](https://github.com/NotAShelf/neovim-flake/branches) or
|
|
||||||
> [open pull requests](https://github.com/NotAShelf/neovim-flake/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc).
|
|
||||||
> neovim-flake, at the time, is still being actively developed - and will continue to be so for the foreseeable
|
|
||||||
> future.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<div align="center"><p>
|
<div align="center"><p>
|
||||||
|
|
||||||
|
[Get Started]: #get-started
|
||||||
|
[Documentation]: #documentation
|
||||||
|
[Help]: #help
|
||||||
|
[Contribute]: #contributing
|
||||||
|
[FAQ]: #faq
|
||||||
|
[Credits]: #credits
|
||||||
|
|
||||||
**[<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]**
|
||||||
|
@ -58,13 +59,6 @@
|
||||||
|
|
||||||
</p></div>
|
</p></div>
|
||||||
|
|
||||||
[Get Started]: #get-started
|
|
||||||
[Documentation]: #documentation
|
|
||||||
[Help]: #help
|
|
||||||
[Contribute]: #contributing
|
|
||||||
[FAQ]: #faq
|
|
||||||
[Credits]: #credits
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Get Started
|
## Get Started
|
||||||
|
@ -113,13 +107,15 @@ featured configuration with `nix` language support by running:
|
||||||
nix run github:notashelf/nvf#nix
|
nix run github:notashelf/nvf#nix
|
||||||
```
|
```
|
||||||
|
|
||||||
Please create an issue on the [issue tracker](../../../issues) if you find
|
[Issues]: https://github.com/NotAShelf/nvf/issues
|
||||||
|
|
||||||
|
Please create an issue on the [issue tracker](issues) if you find
|
||||||
the documentation lacking or confusing. I also appreciate any contributions
|
the documentation lacking or confusing. I also appreciate any contributions
|
||||||
to the documentation.
|
to the documentation.
|
||||||
|
|
||||||
## Help
|
## Help
|
||||||
|
|
||||||
You can create an issue on the [issue tracker](../../../issues) to ask questions
|
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
|
or report bugs. I am not yet on spaces like matrix or IRC, so please use the issue
|
||||||
tracker for now.
|
tracker for now.
|
||||||
|
|
||||||
|
@ -128,7 +124,7 @@ tracker for now.
|
||||||
I am always looking for new ways to help improve this flake. If you would like
|
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
|
to contribute, please read the [contributing guide](CONTRIBUTING.md) before
|
||||||
submitting a pull request. You can also create an issue on the
|
submitting a pull request. You can also create an issue on the
|
||||||
[issue tracker](../../../issues) before submitting a pull request if you would
|
[issue tracker](issues) before submitting a pull request if you would
|
||||||
like to discuss a feature or bug fix.
|
like to discuss a feature or bug fix.
|
||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
|
@ -137,8 +133,7 @@ like to discuss a feature or bug fix.
|
||||||
<br/>
|
<br/>
|
||||||
**A**: Maybe! It is not one of our goals to support each and every Neovim
|
**A**: Maybe! It is not one of our goals to support each and every Neovim
|
||||||
plugin, however, I am always open to new modules and plugin setup additions
|
plugin, however, I am always open to new modules and plugin setup additions
|
||||||
to **nvf**. Use the [appropritate issue
|
to **nvf**. Use the [appropritate issue template](issues/new/choose) and I will
|
||||||
template](https://github.com/NotAShelf/nvf/issues/new/choose) and I will
|
|
||||||
consider a module addition.
|
consider a module addition.
|
||||||
|
|
||||||
**Q**: A plugin I need is not available in **nvf**. What to do?
|
**Q**: A plugin I need is not available in **nvf**. What to do?
|
||||||
|
@ -147,6 +142,15 @@ consider a module addition.
|
||||||
plugin configurations! Please see the documentation on how you may do
|
plugin configurations! Please see the documentation on how you may do
|
||||||
this.
|
this.
|
||||||
|
|
||||||
|
**Q**: Main branch is awfully silent, is the project dead?
|
||||||
|
<br/>
|
||||||
|
**A**: No! Sometimes we branch out (e.g. v0.6) to avoid breaking userspace
|
||||||
|
and work in a separate branch until we make sure the new additions are
|
||||||
|
implemented in the most comfortable way available to the end user. If you have
|
||||||
|
not noticed any activity on the main branch, consider taking a look at the [list
|
||||||
|
of branches](https://github.com/NotAShelf/nvf/branches=) or the [list of open
|
||||||
|
pull requests](https://github.com/NotAShelf/nvf)
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
### Contributors
|
### Contributors
|
||||||
|
@ -180,7 +184,7 @@ recommend checking their work out.
|
||||||
|
|
||||||
Following the [original neovim-flake](https://github.com/jordanisaacs/neovim-flake)
|
Following the [original neovim-flake](https://github.com/jordanisaacs/neovim-flake)
|
||||||
**nvf** has been made available under the **MIT License**. However, all assets
|
**nvf** has been made available under the **MIT License**. However, all assets
|
||||||
are published under the [CC BY License].
|
and documentation are published under the [CC BY License].
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
2
.github/workflows/check-docs.yml
vendored
2
.github/workflows/check-docs.yml
vendored
|
@ -48,4 +48,4 @@ jobs:
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "${{ matrix.package }}"
|
name: "${{ matrix.package }}"
|
||||||
path: result/share/doc/neovim-flake/
|
path: result/share/doc/nvf
|
||||||
|
|
50
.github/workflows/docker.yml
vendored
50
.github/workflows/docker.yml
vendored
|
@ -1,50 +0,0 @@
|
||||||
name: "Publish Docker Image"
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
tags: ["v*"]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-docker-image:
|
|
||||||
name: "Build Docker Image"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Nix
|
|
||||||
uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
- name: Magic Nix Cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
|
|
||||||
- name: Build Docker Image
|
|
||||||
run: nix build .#docker-nix --print-build-logs
|
|
||||||
|
|
||||||
- name: Load & Tag Built Docker Image
|
|
||||||
run: |
|
|
||||||
docker load -i result &&
|
|
||||||
docker tag neovim-flake:latest notashelf/neovim-flake:latest
|
|
||||||
|
|
||||||
- name: Log into DockerHub
|
|
||||||
uses: docker/login-action@master
|
|
||||||
with:
|
|
||||||
username: notashelf
|
|
||||||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
|
||||||
|
|
||||||
- name: Push to DockerHub
|
|
||||||
run: docker push notashelf/neovim-flake:latest
|
|
||||||
|
|
||||||
- name: Log into ghcr
|
|
||||||
uses: docker/login-action@master
|
|
||||||
with:
|
|
||||||
registry: "ghcr.io"
|
|
||||||
username: "${{ github.actor }}"
|
|
||||||
password: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
|
|
||||||
- name: Publish Docker Image (Github Packages)
|
|
||||||
run: docker push notashelf/neovim-flake:latest
|
|
2
.github/workflows/manual.yml
vendored
2
.github/workflows/manual.yml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
nix build '.#docs'
|
nix build '.#docs'
|
||||||
cp -r result/share/doc/neovim-flake public
|
cp -r result/share/doc/nvf public
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf mkMerge;
|
inherit (lib.modules) mkIf mkMerge;
|
||||||
inherit (lib.lists) optional optionals;
|
inherit (lib.lists) optional optionals;
|
||||||
inherit (lib.trivial) boolToString;
|
|
||||||
inherit (lib.nvim.binds) mkSetBinding addDescriptionsToMappings;
|
inherit (lib.nvim.binds) mkSetBinding addDescriptionsToMappings;
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
inherit (lib.nvim.dag) entryBefore entryAfter;
|
inherit (lib.nvim.dag) entryBefore entryAfter;
|
||||||
|
|
|
@ -97,7 +97,7 @@ in {
|
||||||
example = literalMD ''
|
example = literalMD ''
|
||||||
```lua
|
```lua
|
||||||
-- Disable slow treesitter highlight for large files
|
-- Disable slow treesitter highlight for large files
|
||||||
disable = function(lang, buf)
|
function(lang, buf)
|
||||||
local max_filesize = 1000 * 1024 -- 1MB
|
local max_filesize = 1000 * 1024 -- 1MB
|
||||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||||
if ok and stats and stats.size > max_filesize then
|
if ok and stats and stats.size > max_filesize then
|
||||||
|
|
Loading…
Reference in a new issue