Skip to content

Commit

Permalink
[nevim] Update cmp plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Nov 29, 2023
1 parent d25ea99 commit d58bb01
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 18 deletions.
107 changes: 96 additions & 11 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

93 changes: 89 additions & 4 deletions flakes/vim-plugins/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 39 additions & 3 deletions flakes/vim-plugins/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,65 @@
description = "A collection of my favorite vim plugins";

inputs = {
auto-dark-mode-nvim.url = "github:f-person/auto-dark-mode.nvim";
auto-dark-mode-nvim.flake = false;
auto-dark-mode-nvim.url = "github:f-person/auto-dark-mode.nvim";
cmp-buffer.flake = false;
cmp-buffer.url = "github:hrsh7th/cmp-buffer";
cmp-nvim-lsp.flake = false;
cmp-nvim-lsp.url = "github:hrsh7th/cmp-nvim-lsp";
cmp-path.flake = false;
cmp-path.url = "github:hrsh7th/cmp-path";
cmp-vsnip.flake = false;
cmp-vsnip.url = "github:hrsh7th/cmp-vsnip";
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nvim-cmp.flake = false;
nvim-cmp.url = "github:hrsh7th/nvim-cmp";
};

outputs = inputs@{ self, flake-utils, nixpkgs, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in rec {
in
rec {
# https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/vim.section.md
packages = {
auto-dark-mode-nvim = pkgs.vimUtils.buildVimPlugin {
name = "auto-dark-mode.nvim";
src = inputs.auto-dark-mode-nvim;
};
cmp-buffer = pkgs.vimUtils.buildVimPlugin {
name = "cmp-buffer";
src = inputs.cmp-buffer;
};
cmp-nvim-lsp = pkgs.vimUtils.buildVimPlugin {
name = "cmp-nvim-lsp";
src = inputs.cmp-nvim-lsp;
};
cmp-path = pkgs.vimUtils.buildVimPlugin {
name = "cmp-path";
src = inputs.cmp-path;
};
cmp-vsnip = pkgs.vimUtils.buildVimPlugin {
name = "cmp-vsnip";
src = inputs.cmp-vsnip;
};
nvim-cmp = pkgs.vimUtils.buildVimPlugin {
name = "nvim-cmp";
src = inputs.nvim-cmp;
};
};

# https://nixos.wiki/wiki/Overlays
overlays.default = final: prev: {
vimPlugins = prev.vimPlugins.extend(final': prev': {
vimPlugins = prev.vimPlugins.extend (final': prev': {
auto-dark-mode-nvim = packages.auto-dark-mode-nvim;
cmp-buffer = packages.cmp-buffer;
cmp-nvim-lsp = packages.cmp-nvim-lsp;
cmp-path = packages.cmp-path;
cmp-vsnip = packages.cmp-vsnip;
nvim-cmp = packages.nvim-cmp;
});
};
});
Expand Down

0 comments on commit d58bb01

Please sign in to comment.