Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dressing dependency to installation instruction using Lazy #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

khayo
Copy link

@khayo khayo commented Feb 5, 2024

After struggling for a while, I figured out that in the other installation methods, they were using the plugin "dressing", and I think it's worth adding that info for Lazy too. I'm a newbie with LunarVim, and installing a plugin was uncharted territory for me. I had no clue where to drop the code for the plugin installation. Sunday turned out to be quite a mix of interesting and frustrating, lol.

@Snxwman
Copy link
Contributor

Snxwman commented Feb 5, 2024

Your change is adding dressing as a separate plugin. To add it as a dependency you would do this.

{
    "ziontee113/icon-picker.nvim",
    dependencies = {
        "stevearc/dressing.nvim",
    },
    config = function()
        require("icon-picker").setup({ disable_legacy_commands = true })

        local opts = { noremap = true, silent = true }

        vim.keymap.set("n", "<Leader><Leader>i", "<cmd>IconPickerNormal<cr>", opts)
        vim.keymap.set("n", "<Leader><Leader>y", "<cmd>IconPickerYank<cr>", opts) --> Yank the selected icon into register
        vim.keymap.set("i", "<C-i>", "<cmd>IconPickerInsert<cr>", opts)
    end
}

@khayo
Copy link
Author

khayo commented Feb 5, 2024

Thanks for the info @Snxwman. I made the correction in the pull request and also in my configuration file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants