Home

Awesome

circles.nvim

uniform icons for neovim.

ci

Notices

<!-- If you're interested, you can learn more about "sponsor-spotlight" on https://dev.to/ful1e5/lets-give-recognition-to-those-supporting-our-work-on-github-sponsors-b00 -->

shoutout-sponsors

Features

Requirements

Installation

packer.nvim

use {
  "projekt0n/circles.nvim",
  requires = {"nvim-tree/nvim-web-devicons"}
}

vim-plug

Plug 'nvim-tree/nvim-web-devicons'
Plug 'projekt0n/circles.nvim'

Usage

require("circles").setup()

If using packer.nvim circles.nvim can be setup directly in the plugin spec:

use {
  "projekt0n/circles.nvim",
  requires = {"nvim-tree/nvim-web-devicons"},
  config = function()
    require("circles").setup()
  end
}

Configuration can be passed to the setup function. Here is an example with most of the default settings:

require("circles").setup({
  icons = { empty = "", filled = "", lsp_prefix = "" },
  -- override lsp_diagnostic virtual-text icon with `icons.lsp_prefix`
  lsp = true
})

Screenshots

Configure with nvim-tree

local circles = require('circles')

circles.setup({ icons = { empty = '', filled = '', lsp_prefix = '' } })

require('nvim-tree').setup({
  -- ...
  renderer = {
    -- ...
    icons = {
      glyphs = circles.get_nvimtree_glyphs(),
    },
  },
})

circles.nvim X nvim-tree.lua

Neovim LSP diagnostic virtual-text icon

Custom Diagnostic Icon

require("circles").setup({
  icons = {
    -- ...
    lsp_prefix = ""
  },
  lsp = true
})

circles.nvim X LSP virtual-text

Disable Custom Diagnostic Icon

require("circles").setup({
  -- ...
  lsp = false
})

circles.nvim X disabled LSP virtual-text