diff --git a/flake.lock b/flake.lock index 6381538..6ca7dab 100644 --- a/flake.lock +++ b/flake.lock @@ -24,11 +24,11 @@ ] }, "locked": { - "lastModified": 1704982712, - "narHash": "sha256-2Ptt+9h8dczgle2Oo6z5ni5rt/uLMG47UFTR1ry/wgg=", + "lastModified": 1706830856, + "narHash": "sha256-a0NYyp+h9hlb7ddVz4LUn1vT/PLwqfrWYcHMvFB1xYg=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "07f6395285469419cf9d078f59b5b49993198c00", + "rev": "b253292d9c0a5ead9bc98c4e9a26c6312e27d69f", "type": "github" }, "original": { @@ -137,11 +137,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1707175763, - "narHash": "sha256-0MKHC6tQ4KEuM5rui6DjKZ/VNiSANB4E+DJ/+wPS1PU=", + "lastModified": 1708294481, + "narHash": "sha256-DZtxmeb4OR7iCaKUUuq05ADV2rX8WReZEF7Tq//W0+Y=", "owner": "nix-community", "repo": "home-manager", - "rev": "f99eace7c167b8a6a0871849493b1c613d0f1b80", + "rev": "a54e05bc12d88ff2df941d0dc1183cb5235fa438", "type": "github" }, "original": { @@ -149,6 +149,22 @@ "type": "indirect" } }, + "leetcode-nvim": { + "flake": false, + "locked": { + "lastModified": 1708297558, + "narHash": "sha256-VvPH+enqXk06OqinLyr+r/77BBjse/VJQPHUurEspaQ=", + "owner": "kawre", + "repo": "leetcode.nvim", + "rev": "a7386015939d1a88dbfc50dd159d0dd30654b8e4", + "type": "github" + }, + "original": { + "owner": "kawre", + "repo": "leetcode.nvim", + "type": "github" + } + }, "neovim-flake": { "inputs": { "flake-utils": "flake-utils_2", @@ -159,11 +175,11 @@ }, "locked": { "dir": "contrib", - "lastModified": 1706140641, - "narHash": "sha256-H1qHhkf7sF7yrG2rb9Ks1Y4EtLY3cXGp16KCGveJWY4=", + "lastModified": 1708374065, + "narHash": "sha256-1g4X7Iztb3a6ILAGIZmfoNTpHc1FjTLrO+sFYrNllEI=", "owner": "neovim", "repo": "neovim", - "rev": "4e59422e1d4950a3042bad41a7b81c8db4f8b648", + "rev": "8952a89db588db10a9dba16356f9bbd35ca5fabb", "type": "github" }, "original": { @@ -182,11 +198,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1706141075, - "narHash": "sha256-o66/XFTXmcJSpEcO508V5r765HtgT8qtr+H4LRIB9BY=", + "lastModified": 1708387422, + "narHash": "sha256-gnqSo7XHPNPzl6RZmkFcW5dX7v4K+QYO2E7PMuBn7z8=", "owner": "nix-community", "repo": "neovim-nightly-overlay", - "rev": "1da2e054a16309d7d7f7669438c8b9a5ef1b4642", + "rev": "2977f72bfa978bcd77492225ad08a46a5a4c9dc0", "type": "github" }, "original": { @@ -197,11 +213,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1706732774, - "narHash": "sha256-hqJlyJk4MRpcItGYMF+3uHe8HvxNETWvlGtLuVpqLU0=", + "lastModified": 1708118438, + "narHash": "sha256-kk9/0nuVgA220FcqH/D2xaN6uGyHp/zoxPNUmPCMmEE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "b8b232ae7b8b144397fdb12d20f592e5e7c1a64d", + "rev": "5863c27340ba4de8f83e7e3c023b9599c3cb3c80", "type": "github" }, "original": { @@ -213,11 +229,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1706006310, - "narHash": "sha256-nDPz0fj0IFcDhSTlXBU2aixcnGs2Jm4Zcuoj0QtmiXQ=", + "lastModified": 1708341091, + "narHash": "sha256-3R7doGV1AoB5VKFifEd5elj8t4cld6VpJRpn9NaYr1Y=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "b43bb235efeab5324c5e486882ef46749188eee2", + "rev": "86ef6bd96b6279e1a4a53236d341f5df1ede3803", "type": "github" }, "original": { @@ -229,11 +245,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1707092692, - "narHash": "sha256-ZbHsm+mGk/izkWtT4xwwqz38fdlwu7nUUKXTOmm4SyE=", + "lastModified": 1708296515, + "narHash": "sha256-FyF489fYNAUy7b6dkYV6rGPyzp+4tThhr80KNAaF/yY=", "owner": "nixos", "repo": "nixpkgs", - "rev": "faf912b086576fd1a15fca610166c98d47bc667e", + "rev": "b98a4e1746acceb92c509bc496ef3d0e5ad8d4aa", "type": "github" }, "original": { @@ -248,6 +264,7 @@ "flake-utils": "flake-utils", "gopher-nvim": "gopher-nvim", "home-manager": "home-manager", + "leetcode-nvim": "leetcode-nvim", "neovim-nightly-overlay": "neovim-nightly-overlay", "nixpkgs": "nixpkgs_3" } diff --git a/flake.nix b/flake.nix index b2ab6f4..df00d15 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,10 @@ url = "github:olexsmir/gopher.nvim"; flake = false; }; + leetcode-nvim = { + url = "github:kawre/leetcode.nvim"; + flake = false; + }; }; outputs = inputs@{ self, nixpkgs, flake-utils, home-manager, ... }: diff --git a/neovim-ide/plugin/leetcode.lua b/neovim-ide/plugin/leetcode.lua new file mode 100644 index 0000000..93ddfce --- /dev/null +++ b/neovim-ide/plugin/leetcode.lua @@ -0,0 +1,4 @@ +local leetcode = require("leetcode") +leetcode.setup({ + lang = "rust", +}) diff --git a/neovim-ide/plugins.nix b/neovim-ide/plugins.nix index c816bd4..eed4016 100644 --- a/neovim-ide/plugins.nix +++ b/neovim-ide/plugins.nix @@ -2,7 +2,7 @@ let nvimLib = pkgs.callPackage ../nix/lib { }; inherit (nvimLib) mkNeovimPlugin; - vimPlugins = pkgs.vimPlugins; + inherit (pkgs) vimPlugins; lsp = with vimPlugins; [ nvim-lspconfig @@ -80,6 +80,7 @@ let vim-table-mode which-key-nvim harpoon + (mkNeovimPlugin inputs.leetcode-nvim "leetcode.nvim") ]; plugins = builtins.concatLists [