uniform icons for neovim.
- 2022-05-29: Due to nvim-tree major changes, circle.nvim is unable to override
files & folder icons with
vim.g.nvim_tree_show_icons
. Please check the this for the workaround.
- Uniform icon replacement for web-devicons
- Customize lsp diagnostic virtual-text icon
- neovim>=0.8.0
- nvim-web-devicons
- Patched fonts (Nerd Fonts)
use {
"projekt0n/circles.nvim",
requires = {"nvim-tree/nvim-web-devicons"}
}
Plug 'nvim-tree/nvim-web-devicons'
Plug 'projekt0n/circles.nvim'
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
})
- Terminal: Konsole
- Font: Fira Code
- Colorscheme: ful1e5/onedark.nvim and projekt0n/github-nvim-theme
local circles = require('circles')
circles.setup({ icons = { empty = '', filled = '', lsp_prefix = '' } })
require('nvim-tree').setup({
-- ...
renderer = {
-- ...
icons = {
glyphs = circles.get_nvimtree_glyphs(),
},
},
})
require("circles").setup({
icons = {
-- ...
lsp_prefix = ""
},
lsp = true
})
require("circles").setup({
-- ...
lsp = false
})