From 0753f3006167cae9f9397028c26fadcfdae2189e Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Tue, 20 Feb 2024 07:13:23 +0100 Subject: [PATCH] Add competitest --- flake.lock | 17 +++++++++++++++++ flake.nix | 4 ++++ neovim-ide/plugin/competitest.lua | 4 ++++ neovim-ide/plugins.nix | 1 + 4 files changed, 26 insertions(+) create mode 100644 neovim-ide/plugin/competitest.lua diff --git a/flake.lock b/flake.lock index 6ca7dab..c48cd5a 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "competitest-nvim": { + "flake": false, + "locked": { + "lastModified": 1706007708, + "narHash": "sha256-ABxdZ98W5W6K0rz0z/1I5lXzLCBnth6ozUUQ1W1nvpo=", + "owner": "xeluxee", + "repo": "competitest.nvim", + "rev": "c3cb0e2b0916a879c4d3dcb5737e6c046dd0afc5", + "type": "github" + }, + "original": { + "owner": "xeluxee", + "repo": "competitest.nvim", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -261,6 +277,7 @@ }, "root": { "inputs": { + "competitest-nvim": "competitest-nvim", "flake-utils": "flake-utils", "gopher-nvim": "gopher-nvim", "home-manager": "home-manager", diff --git a/flake.nix b/flake.nix index df00d15..075a370 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,10 @@ url = "github:kawre/leetcode.nvim"; flake = false; }; + competitest-nvim = { + url = "github:xeluxee/competitest.nvim"; + flake = false; + }; }; outputs = inputs@{ self, nixpkgs, flake-utils, home-manager, ... }: diff --git a/neovim-ide/plugin/competitest.lua b/neovim-ide/plugin/competitest.lua new file mode 100644 index 0000000..6fc68fd --- /dev/null +++ b/neovim-ide/plugin/competitest.lua @@ -0,0 +1,4 @@ +local competitest = require("competitest") +competitest.setup({ + received_files_extension = "rs", +}) diff --git a/neovim-ide/plugins.nix b/neovim-ide/plugins.nix index eed4016..e0f23f7 100644 --- a/neovim-ide/plugins.nix +++ b/neovim-ide/plugins.nix @@ -81,6 +81,7 @@ let which-key-nvim harpoon (mkNeovimPlugin inputs.leetcode-nvim "leetcode.nvim") + (mkNeovimPlugin inputs.competitest-nvim "competitest.nvim") ]; plugins = builtins.concatLists [