Compare commits

...

4 Commits

Author SHA1 Message Date
c893edf5b9
chore: Update flake.lock
Some checks failed
Perform checks / formatting (pull_request) Successful in 40s
Perform checks / nix_flake_check (pull_request) Successful in 45s
Perform checks / nix_build (pull_request) Successful in 1m12s
Perform checks / formatting (push) Successful in 40s
Perform checks / nix_flake_check (push) Successful in 45s
Perform checks / nix_build (push) Successful in 1m12s
Update `flake.lock` / update_lockfile (push) Failing after 1m43s
2024-11-29 03:49:39 +01:00
3e8afe8672
fix: Remove FUNDING.yml 2024-11-29 03:49:39 +01:00
9c44dbc28f
feat(ci): Add nix flake ci actions 2024-11-29 03:49:36 +01:00
64061943ed
feat(plugins): Add [iamcco/markdown-preview.nvim](https://github.com/iamcco/markdown-preview.nvim/) 2024-11-29 02:54:11 +01:00
6 changed files with 89 additions and 7 deletions

1
.github/FUNDING.yml vendored

@ -1 +0,0 @@
github: mrcjkb

50
.github/workflows/check.yml vendored Normal file

@ -0,0 +1,50 @@
name: Perform checks
on:
push:
pull_request:
workflow_dispatch:
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Action cache for nix
uses: DeterminateSystems/magic-nix-cache-action@main
with:
fail-mode: true
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4 # This action
- name: Run nix fmt
run: nix fmt -- --check .
nix_flake_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Action cache for nix
uses: DeterminateSystems/magic-nix-cache-action@main
with:
fail-mode: true
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4 # This action
- name: Run nix flake check
run: nix flake check
nix_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4 # This action
with:
fail-mode: true
- name: Build nvim
run: nix build .\#default

30
.github/workflows/update.yml vendored Normal file

@ -0,0 +1,30 @@
name: Update `flake.lock`
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
jobs:
update_lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Action cache for nix
uses: DeterminateSystems/magic-nix-cache-action@main
with:
fail-mode: true
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
# inputs: dzgui dzgui-testing # We'll see whether I want to limit the updates to dzgui
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
pr-title: "Update flake.lock"
pr-assignees: jiriks74
pr-labels: |
flake.lock
automated
- name: Print PR number
run: echo Pull request number is ${{ steps.update.outputs.pull-request-number }}.

12
flake.lock generated

@ -39,11 +39,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1726560853, "lastModified": 1731533236,
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -181,11 +181,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1729413321, "lastModified": 1732521221,
"narHash": "sha256-I4tuhRpZFa6Fu6dcH9Dlo5LlH17peT79vx1y1SpeKt0=", "narHash": "sha256-2ThgXBUXAE1oFsVATK1ZX9IjPcS4nKFOAjhPNKuiMn0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1997e4aa514312c1af7e2bda7fad1644e778ff26", "rev": "4633a7c72337ea8fd23a4f2ba3972865e3ec685d",
"type": "github" "type": "github"
}, },
"original": { "original": {

@ -81,6 +81,7 @@ with final.pkgs.lib; let
# ^ UI # ^ UI
# language support # language support
markdown-preview-nvim
# ^ language support # ^ language support
# navigation/editing enhancement plugins # navigation/editing enhancement plugins

@ -60,6 +60,8 @@ require('which-key').add({
end, end,
desc = "trouble: load [w]orkspace" desc = "trouble: load [w]orkspace"
}, },
{ "<leader>lP", "<cmd>MarkdownPreviewToggle<cr>", desc = "Markdown [l] [P]review"},
}) })
-- Toggle the quickfix list (only opens if it is populated) -- Toggle the quickfix list (only opens if it is populated)