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" "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": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1667395993, "lastModified": 1667395993,
@ -304,6 +336,22 @@
"type": "github" "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": { "indent-blankline": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -851,9 +899,12 @@
"colorizer": "colorizer", "colorizer": "colorizer",
"crates-nvim": "crates-nvim", "crates-nvim": "crates-nvim",
"dashboard-nvim": "dashboard-nvim", "dashboard-nvim": "dashboard-nvim",
"discord-nvim": "discord-nvim",
"dressing-nvim": "dressing-nvim",
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"gitsigns-nvim": "gitsigns-nvim", "gitsigns-nvim": "gitsigns-nvim",
"glow-nvim": "glow-nvim", "glow-nvim": "glow-nvim",
"icon-picker-nvim": "icon-picker-nvim",
"indent-blankline": "indent-blankline", "indent-blankline": "indent-blankline",
"kommentary": "kommentary", "kommentary": "kommentary",
"lsp-signature": "lsp-signature", "lsp-signature": "lsp-signature",

View file

@ -122,8 +122,8 @@
gitsigns.enable = true; gitsigns.enable = true;
}; };
vim.minimap = { vim.minimap = {
minimap-vim.enable = false; # FIXME: this plugin has a dependency that needs to be installed minimap-vim.enable = true; # FIXME: this plugin has a dependency that needs to be installed
codewindow.enable = true; codewindow.enable = false;
}; };
vim.dashboard = { vim.dashboard = {
dashboard-nvim.enable = false; dashboard-nvim.enable = false;
@ -134,6 +134,7 @@
}; };
vim.utility = { vim.utility = {
colorizer.enable = true; colorizer.enable = true;
icon-picker.enable = true;
venn-nvim.enable = false; # FIXME: throws an error when the command is ran manually venn-nvim.enable = false; # FIXME: throws an error when the command is ran manually
}; };
}; };
@ -355,6 +356,12 @@
flake = false; flake = false;
}; };
# Presence
discord-nvim = {
url = "github:andweeb/presence.nvim";
flake = false;
};
# Autopairs # Autopairs
nvim-autopairs = { nvim-autopairs = {
url = "github:windwp/nvim-autopairs"; url = "github:windwp/nvim-autopairs";
@ -471,12 +478,6 @@
inputs.vim-tidal-src.url = "github:tidalcycles/vim-tidal"; 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
minimap-vim = { minimap-vim = {
url = "github:wfxr/minimap.vim"; url = "github:wfxr/minimap.vim";
@ -504,5 +505,23 @@
url = "github:jbyuki/venn.nvim"; url = "github:jbyuki/venn.nvim";
flake = false; 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 = [ imports = [
./colorizer.nix ./colorizer.nix
./venn.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
})
'';
};
}