Add nvim-lazy submodule and add plugin configuration.
This commit is contained in:
parent
f545e30831
commit
b1ad0b623a
39 changed files with 1599 additions and 0 deletions
79
pkgsets/nvim/telescope.nix
Normal file
79
pkgsets/nvim/telescope.nix
Normal file
|
@ -0,0 +1,79 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
lib.mkIf (lib.elem "nvim::telescope" config.machine.pkgs) {
|
||||
programs.nvim-lazy.lazyPlugins = [
|
||||
{
|
||||
lazy = true;
|
||||
dir = vPlug: vPlug.telescope-nvim;
|
||||
dependencies = (
|
||||
vPlug: with vPlug; [
|
||||
plenary-nvim
|
||||
"ghassan0/telescope-glyph.nvim"
|
||||
"xiyaowong/telescope-emoji.nvim"
|
||||
]
|
||||
);
|
||||
keys = [
|
||||
{
|
||||
bind = "<leader>ff";
|
||||
cmd = "<Cmd>Telescope find_files<CR>";
|
||||
opts = {
|
||||
desc = "Telescope Find Files";
|
||||
};
|
||||
}
|
||||
{
|
||||
bind = "<leader>fg";
|
||||
cmd = "<Cmd>Telescope git_files<CR>";
|
||||
opts = {
|
||||
desc = "Telescope Git Files";
|
||||
};
|
||||
}
|
||||
{
|
||||
bind = "<leader>fw";
|
||||
cmd = "<Cmd>Telescope grep_string<CR>";
|
||||
opts = {
|
||||
desc = "Telescope Grep Cursor Word";
|
||||
};
|
||||
}
|
||||
{
|
||||
bind = "<leader>fr";
|
||||
cmd = "<Cmd>Telescope live_grep<CR>";
|
||||
opts = {
|
||||
desc = "Telescope Grep Files";
|
||||
};
|
||||
}
|
||||
{
|
||||
bind = "<leader>fc";
|
||||
cmd = "<Cmd>Telescope glyph<CR>";
|
||||
opts = {
|
||||
desc = "Telescope find glyphs";
|
||||
};
|
||||
}
|
||||
{
|
||||
bind = "<leader>fe";
|
||||
cmd = "<Cmd>Telescope emoji<CR>";
|
||||
opts = {
|
||||
desc = "Telescope find emoju";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
lazy = true;
|
||||
short = "ghassan0/telescope-glyph.nvim";
|
||||
}
|
||||
{
|
||||
lazy = true;
|
||||
short = "xiyaowong/telescope-emoji.nvim";
|
||||
}
|
||||
{
|
||||
short = "nvim-lua/plenary.nvim";
|
||||
# 2d9b06177a975543726ce5c73fca176cedbffe9d
|
||||
# dir = vPlug: vPlug.plenary-nvim;
|
||||
lazy = true;
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue