diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 63b3a63..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: mrcjkb diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..f337b16 --- /dev/null +++ b/.github/workflows/check.yml @@ -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 diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000..982d05e --- /dev/null +++ b/.github/workflows/update.yml @@ -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 }}. diff --git a/flake.lock b/flake.lock index 5ecd162..825b71f 100644 --- a/flake.lock +++ b/flake.lock @@ -39,11 +39,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1726560853, - "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -181,11 +181,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1729413321, - "narHash": "sha256-I4tuhRpZFa6Fu6dcH9Dlo5LlH17peT79vx1y1SpeKt0=", + "lastModified": 1732521221, + "narHash": "sha256-2ThgXBUXAE1oFsVATK1ZX9IjPcS4nKFOAjhPNKuiMn0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "1997e4aa514312c1af7e2bda7fad1644e778ff26", + "rev": "4633a7c72337ea8fd23a4f2ba3972865e3ec685d", "type": "github" }, "original": { diff --git a/nix/neovim-overlay.nix b/nix/neovim-overlay.nix index f7cb482..3e96063 100644 --- a/nix/neovim-overlay.nix +++ b/nix/neovim-overlay.nix @@ -81,6 +81,7 @@ with final.pkgs.lib; let # ^ UI # language support + markdown-preview-nvim # ^ language support # navigation/editing enhancement plugins diff --git a/nvim/plugin/keymaps.lua b/nvim/plugin/keymaps.lua index ec37ead..317bb47 100644 --- a/nvim/plugin/keymaps.lua +++ b/nvim/plugin/keymaps.lua @@ -60,6 +60,8 @@ require('which-key').add({ end, desc = "trouble: load [w]orkspace" }, + + { "lP", "MarkdownPreviewToggle", desc = "Markdown [l] [P]review"}, }) -- Toggle the quickfix list (only opens if it is populated)