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

Adding an easy keymap for kickstart.nvim telescope users #19

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

Galus
Copy link
Contributor

@Galus Galus commented Aug 25, 2024

As a kickstart.nvim user, the first thing I did is add a telescope keybind <leader>se to activate the Emoji.nvim telescope ui.

kickstart.nvim's lua.init

...
  --  Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
  --    For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
  { import = 'custom.plugins' },
...

~/.config/nvim/lua/custom/plugins/emoji.lua

return {
  {
    'allaman/emoji.nvim',
    dependencies = {
      -- optional for nvim-cmp integration
      'hrsh7th/nvim-cmp',
      -- optional for telescope integration
      'nvim-telescope/telescope.nvim',
    },
    opts = {
      -- default is false
      enable_cmp_integration = true,
      -- optional if your plugin installation directory
      -- is not vim.fn.stdpath("data") .. "/lazy/
      -- plugin_path = vim.fn.expand '$HOME/plugins/',
    },
    config = function(_, opts)
      require('emoji').setup(opts)
      -- optional for telescope integration
      local ts = require('telescope').load_extension 'emoji'
      vim.keymap.set('n', '<leader>se', ts.emoji, { desc = '[S]earch [E]moji' })
    end,
  },
}

Copy link
Owner

@Allaman Allaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR. Only a minor issue :)

README.md Outdated Show resolved Hide resolved
@Allaman Allaman merged commit 9f2f967 into Allaman:main Aug 30, 2024
3 checks passed
@Allaman
Copy link
Owner

Allaman commented Aug 30, 2024

Thank you

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.

2 participants