An open API service indexing awesome lists of open source software.

https://github.com/mskelton/termicons.nvim

Alternative set of icons for nvim-web-devicons using termicons.
https://github.com/mskelton/termicons.nvim

icons nvim nvim-plugin nvim-web-devicons

Last synced: about 1 year ago
JSON representation

Alternative set of icons for nvim-web-devicons using termicons.

Awesome Lists containing this project

README

          

# termicons.nvim

Alternative set of icons for [nvim-web-devicons](https://github.com/nvim-tree/nvim-web-devicons) using [termicons](https://github.com/mskelton/termicons).

image

## Requirements

* [termicons](https://termicons.mskelton.dev)

## Installation

Install with your favorite package manager (e.g. [lazy.nvim](https://github.com/folke/lazy.nvim)).

```lua
{
"mskelton/termicons.nvim",
requires = { "nvim-tree/nvim-web-devicons" },
build = false,
}
```

## Setup

This plugin works alongside [nvim-web-devicons](https://github.com/nvim-tree/nvim-web-devicons) and simply provides an alternative set of icons.

```lua
require("termicons").setup()
```

### Kitty

To setup termicons with [Kitty](https://sw.kovidgoyal.net/kitty), add the
following to your `kitty.conf` file.

```kitty
symbol_map U+D000-U+D200 termicons
```

### iTerm

Usage of termicons in iTerm is limited given that iTerm only supports a single
"non-ASCII" font. If you don't already have a "non-ASCII" font specified in your
iTerm preferences, set it to "termicons". Sadly, termicons does not support
patched fonts, so this does not work alongside an existing "non-ASCII" font.

## API

### `icons.get()`

The `icons.get()` method can be used to get an icon by name.

```lua
local icons = require('termicons')

icons.get('javascript')
```