Skip to content

nvimdev/nerdicons.nvim

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
March 7, 2023 20:22
March 7, 2023 20:20
March 9, 2023 18:40

nerdicons.nvim

get the nerdfont icons inside neovim . no need open nerdfont website to search icons anymore.

nerdicons

Install

  • lazy.nvim
require('lazy').setup({
 {'glepnir/nerdicons.nvim', cmd = 'NerdIcons', config = function() require('nerdicons').setup({}) end}
})
  • packer
use({'glepnir/nerdicons.nvim', cmd = 'NerdIcons', config = function() require('nerdicons').setup({}) end})

Options

available options in setup params table

{
    border = 'single',       -- Border
    prompt = '󰨭 ',           -- Prompt Icon
    preview_prompt = '',   -- Preview Prompt Icon
    width = 0.5              -- flaot window width
    down = '<C-n>',          -- Move down in preview
    up = '<C-p>',            -- Move up in preview
    copy = '<C-y>',          -- Copy to the clipboard
}

close the nerdicons window in prompt buffer you can exit to normal mode then press <Esc> or Ctrl-c

Usage

  • call the command NerdIcons or with an argument like NerdIcons linux
  • input the keyword of icon name
  • Ctrl n or Ctrl p to move in preview
  • Ctrl y to copy the icon

Highlight

all the highlight groups

NerdIconPrompt NerdIconPreviewPrompt NerdIconNormal NerdIconBorder

License MIT

About

get the nerdfont icons inside neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published