No description
Problem: plugins that don't use devicons have no way to get nonicons glyphs for files. The only integration path is the devicons monkey-patch via apply(). Solution: add get_icon(name, ext) and get_icon_by_filetype(ft) to the public API in init.lua. Both use lazy require of the resolve module and return nil on miss so callers decide fallback. Document both functions in vimdoc and update the oil.nvim recipe. |
||
|---|---|---|
| .github | ||
| doc | ||
| lua/nonicons | ||
| plugin | ||
| .editorconfig | ||
| .gitignore | ||
| .luarc.json | ||
| .pre-commit-config.yaml | ||
| .prettierignore | ||
| .prettierrc | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| nonicons.nvim-scm-1.rockspec | ||
| README.md | ||
| selene.toml | ||
| stylua.toml | ||
| vim.toml | ||
nonicons.nvim
Nonicons for Neovim
Features
- Replaces nvim-web-devicons glyphs with nonicons font icons
- Any plugin using nvim-web-devicons works automatically
Requirements
- nvim-web-devicons
- nonicons font installed
Installation
Install with your package manager of choice or via luarocks:
luarocks install nonicons.nvim
Documentation
:help nonicons.nvim
FAQ
Q: How do I integrate with plugin X?
See :help nonicons-recipes.
Acknowledgements
- ya2s/nonicons — icon font
- ya2s/nvim-nonicons — original plugin