From cd4f7d8f94dc10f183ee1d82ab7cf8dd7b25c60c Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 11 Mar 2024 09:12:47 -0400 Subject: [PATCH] feat(nvim): add riscv syntax highlighting --- common/home/neovim/default.nix | 5 +++++ flake.lock | 17 +++++++++++++++++ flake.nix | 7 +++++++ 3 files changed, 29 insertions(+) diff --git a/common/home/neovim/default.nix b/common/home/neovim/default.nix index a40e5f1..cf2cc0b 100644 --- a/common/home/neovim/default.nix +++ b/common/home/neovim/default.nix @@ -4,6 +4,7 @@ lib, nvim-theme-src, coc-stylelintplus, + vimplugin-riscv-src, ... }: let inherit (config.vars) neovimIde; @@ -250,6 +251,10 @@ in { EOF ''; } + (pkgs.vimUtils.buildVimPlugin { + name = "riscv-asm"; + src = vimplugin-riscv-src; + }) ]) # Treesitter ++ (with pkgs.vimPlugins; [ diff --git a/flake.lock b/flake.lock index e77e202..5a4ed70 100644 --- a/flake.lock +++ b/flake.lock @@ -1520,6 +1520,7 @@ "spotifywm-src": "spotifywm-src", "touch-gestures-src": "touch-gestures-src", "trash-d-src": "trash-d-src", + "vimplugin-riscv-src": "vimplugin-riscv-src", "xresources-theme-src": "xresources-theme-src" } }, @@ -1757,6 +1758,22 @@ "type": "github" } }, + "vimplugin-riscv-src": { + "flake": false, + "locked": { + "lastModified": 1708141837, + "narHash": "sha256-9OByJMfa85gu98g8rGJKtDgXqQdzZ8pc0du4UVomeqY=", + "owner": "henry-hsieh", + "repo": "riscv-asm-vim", + "rev": "4a287063af666292af74d912fd97b7af5fa32925", + "type": "github" + }, + "original": { + "owner": "henry-hsieh", + "repo": "riscv-asm-vim", + "type": "github" + } + }, "wlroots": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index 1dd7c5f..e6291bf 100644 --- a/flake.nix +++ b/flake.nix @@ -333,6 +333,13 @@ flake = false; }; + vimplugin-riscv-src = { + type = "github"; + owner = "henry-hsieh"; + repo = "riscv-asm-vim"; + flake = false; + }; + ## Overlays spotifywm-src = { # FIXME: remove this input once this gets merged: https://github.com/NixOS/nixpkgs/pull/261501