feat: add icon picker to utils & install deps

This commit is contained in:
NotAShelf 2023-02-05 23:57:19 +03:00
parent fbccfa48e4
commit 6572964523
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
4 changed files with 106 additions and 8 deletions

View file

@ -257,6 +257,38 @@
"type": "github"
}
},
"discord-nvim": {
"flake": false,
"locked": {
"lastModified": 1674984077,
"narHash": "sha256-ZpsunLsn//zYgUtmAm5FqKVueVd/Pa1r55ZDqxCimBk=",
"owner": "andweeb",
"repo": "presence.nvim",
"rev": "87c857a56b7703f976d3a5ef15967d80508df6e6",
"type": "github"
},
"original": {
"owner": "andweeb",
"repo": "presence.nvim",
"type": "github"
}
},
"dressing-nvim": {
"flake": false,
"locked": {
"lastModified": 1675626245,
"narHash": "sha256-tBO21/0rpil2lItFl9UzALXNJbvmSfQuW+LOGet9YgI=",
"owner": "stevearc",
"repo": "dressing.nvim",
"rev": "db716a0f1279f79a886c0e0b6ab3c3d5ffdb42fe",
"type": "github"
},
"original": {
"owner": "stevearc",
"repo": "dressing.nvim",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1667395993,
@ -304,6 +336,22 @@
"type": "github"
}
},
"icon-picker-nvim": {
"flake": false,
"locked": {
"lastModified": 1673847230,
"narHash": "sha256-vPFfpTrCO8AhBRm+1wEu3Uw28L39svfkAT9qgnJ9Zyg=",
"owner": "ziontee113",
"repo": "icon-picker.nvim",
"rev": "66d37ceae84099ca76235de44466829eb37118c2",
"type": "github"
},
"original": {
"owner": "ziontee113",
"repo": "icon-picker.nvim",
"type": "github"
}
},
"indent-blankline": {
"flake": false,
"locked": {
@ -851,9 +899,12 @@
"colorizer": "colorizer",
"crates-nvim": "crates-nvim",
"dashboard-nvim": "dashboard-nvim",
"discord-nvim": "discord-nvim",
"dressing-nvim": "dressing-nvim",
"flake-utils": "flake-utils",
"gitsigns-nvim": "gitsigns-nvim",
"glow-nvim": "glow-nvim",
"icon-picker-nvim": "icon-picker-nvim",
"indent-blankline": "indent-blankline",
"kommentary": "kommentary",
"lsp-signature": "lsp-signature",

View file

@ -122,8 +122,8 @@
gitsigns.enable = true;
};
vim.minimap = {
minimap-vim.enable = false; # FIXME: this plugin has a dependency that needs to be installed
codewindow.enable = true;
minimap-vim.enable = true; # FIXME: this plugin has a dependency that needs to be installed
codewindow.enable = false;
};
vim.dashboard = {
dashboard-nvim.enable = false;
@ -134,6 +134,7 @@
};
vim.utility = {
colorizer.enable = true;
icon-picker.enable = true;
venn-nvim.enable = false; # FIXME: throws an error when the command is ran manually
};
};
@ -355,6 +356,12 @@
flake = false;
};
# Presence
discord-nvim = {
url = "github:andweeb/presence.nvim";
flake = false;
};
# Autopairs
nvim-autopairs = {
url = "github:windwp/nvim-autopairs";
@ -471,12 +478,6 @@
inputs.vim-tidal-src.url = "github:tidalcycles/vim-tidal";
};
# Plenary (required by crates-nvim)
plenary-nvim = {
url = "github:nvim-lua/plenary.nvim";
flake = false;
};
# Minimap
minimap-vim = {
url = "github:wfxr/minimap.vim";
@ -504,5 +505,23 @@
url = "github:jbyuki/venn.nvim";
flake = false;
};
icon-picker-nvim = {
url = "github:ziontee113/icon-picker.nvim";
flake = false;
};
# Dependencies
plenary-nvim = {
# (required by crates-nvim)
url = "github:nvim-lua/plenary.nvim";
flake = false;
};
dressing-nvim = {
# (required by icon-picker-nvim)
url = "github:stevearc/dressing.nvim";
flake = false;
};
};
}

View file

@ -2,5 +2,6 @@ _: {
imports = [
./colorizer.nix
./venn.nix
./icon-picker.nix
];
}

View file

@ -0,0 +1,27 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.utility.icon-picker;
in {
options.vim.utility.icon-picker = {
enable = mkEnableOption "Nerdfonts icon picker for nvim";
};
config = mkIf (cfg.enable) {
vim.startPlugins = [
"icon-picker-nvim"
"dressing-nvim"
];
vim.luaConfigRC.icon-picker = nvim.dag.entryAnywhere ''
require("icon-picker").setup({
disable_legacy_commands = true
})
'';
};
}