Add leetcode plugin

This commit is contained in:
Patrick Neff 2024-02-20 05:30:38 +01:00
parent d9a3d06735
commit 5e9b8f8325
4 changed files with 48 additions and 22 deletions

View File

@ -24,11 +24,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1704982712, "lastModified": 1706830856,
"narHash": "sha256-2Ptt+9h8dczgle2Oo6z5ni5rt/uLMG47UFTR1ry/wgg=", "narHash": "sha256-a0NYyp+h9hlb7ddVz4LUn1vT/PLwqfrWYcHMvFB1xYg=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "07f6395285469419cf9d078f59b5b49993198c00", "rev": "b253292d9c0a5ead9bc98c4e9a26c6312e27d69f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -137,11 +137,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1707175763, "lastModified": 1708294481,
"narHash": "sha256-0MKHC6tQ4KEuM5rui6DjKZ/VNiSANB4E+DJ/+wPS1PU=", "narHash": "sha256-DZtxmeb4OR7iCaKUUuq05ADV2rX8WReZEF7Tq//W0+Y=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "f99eace7c167b8a6a0871849493b1c613d0f1b80", "rev": "a54e05bc12d88ff2df941d0dc1183cb5235fa438",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -149,6 +149,22 @@
"type": "indirect" "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": { "neovim-flake": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",
@ -159,11 +175,11 @@
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1706140641, "lastModified": 1708374065,
"narHash": "sha256-H1qHhkf7sF7yrG2rb9Ks1Y4EtLY3cXGp16KCGveJWY4=", "narHash": "sha256-1g4X7Iztb3a6ILAGIZmfoNTpHc1FjTLrO+sFYrNllEI=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "4e59422e1d4950a3042bad41a7b81c8db4f8b648", "rev": "8952a89db588db10a9dba16356f9bbd35ca5fabb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -182,11 +198,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1706141075, "lastModified": 1708387422,
"narHash": "sha256-o66/XFTXmcJSpEcO508V5r765HtgT8qtr+H4LRIB9BY=", "narHash": "sha256-gnqSo7XHPNPzl6RZmkFcW5dX7v4K+QYO2E7PMuBn7z8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "1da2e054a16309d7d7f7669438c8b9a5ef1b4642", "rev": "2977f72bfa978bcd77492225ad08a46a5a4c9dc0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -197,11 +213,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1706732774, "lastModified": 1708118438,
"narHash": "sha256-hqJlyJk4MRpcItGYMF+3uHe8HvxNETWvlGtLuVpqLU0=", "narHash": "sha256-kk9/0nuVgA220FcqH/D2xaN6uGyHp/zoxPNUmPCMmEE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b8b232ae7b8b144397fdb12d20f592e5e7c1a64d", "rev": "5863c27340ba4de8f83e7e3c023b9599c3cb3c80",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -213,11 +229,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1706006310, "lastModified": 1708341091,
"narHash": "sha256-nDPz0fj0IFcDhSTlXBU2aixcnGs2Jm4Zcuoj0QtmiXQ=", "narHash": "sha256-3R7doGV1AoB5VKFifEd5elj8t4cld6VpJRpn9NaYr1Y=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b43bb235efeab5324c5e486882ef46749188eee2", "rev": "86ef6bd96b6279e1a4a53236d341f5df1ede3803",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -229,11 +245,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1707092692, "lastModified": 1708296515,
"narHash": "sha256-ZbHsm+mGk/izkWtT4xwwqz38fdlwu7nUUKXTOmm4SyE=", "narHash": "sha256-FyF489fYNAUy7b6dkYV6rGPyzp+4tThhr80KNAaF/yY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "faf912b086576fd1a15fca610166c98d47bc667e", "rev": "b98a4e1746acceb92c509bc496ef3d0e5ad8d4aa",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -248,6 +264,7 @@
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"gopher-nvim": "gopher-nvim", "gopher-nvim": "gopher-nvim",
"home-manager": "home-manager", "home-manager": "home-manager",
"leetcode-nvim": "leetcode-nvim",
"neovim-nightly-overlay": "neovim-nightly-overlay", "neovim-nightly-overlay": "neovim-nightly-overlay",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
} }

View File

@ -13,6 +13,10 @@
url = "github:olexsmir/gopher.nvim"; url = "github:olexsmir/gopher.nvim";
flake = false; flake = false;
}; };
leetcode-nvim = {
url = "github:kawre/leetcode.nvim";
flake = false;
};
}; };
outputs = inputs@{ self, nixpkgs, flake-utils, home-manager, ... }: outputs = inputs@{ self, nixpkgs, flake-utils, home-manager, ... }:

View File

@ -0,0 +1,4 @@
local leetcode = require("leetcode")
leetcode.setup({
lang = "rust",
})

View File

@ -2,7 +2,7 @@
let let
nvimLib = pkgs.callPackage ../nix/lib { }; nvimLib = pkgs.callPackage ../nix/lib { };
inherit (nvimLib) mkNeovimPlugin; inherit (nvimLib) mkNeovimPlugin;
vimPlugins = pkgs.vimPlugins; inherit (pkgs) vimPlugins;
lsp = with vimPlugins; [ lsp = with vimPlugins; [
nvim-lspconfig nvim-lspconfig
@ -80,6 +80,7 @@ let
vim-table-mode vim-table-mode
which-key-nvim which-key-nvim
harpoon harpoon
(mkNeovimPlugin inputs.leetcode-nvim "leetcode.nvim")
]; ];
plugins = builtins.concatLists [ plugins = builtins.concatLists [