A colorscheme that adapts to your terminal colors through ANSI values
Warning
This extension is still under development; if you experience problems please open an issue!
- Support for Neovim's built-in LSP
- Treesitter highlighting
- Plugin integrations:
- Telescope
- Indent Blankline
- Nvim-notify
- Rainbow parentheses
- Nvim-cmp
- vim-illuminate
- LSP semantic tokens
- mini.completion
- nvim-dap-ui
Using lazy.nvim
{
'stevedylandev/ansi-nvim',
lazy = false,
priority = 1000,
config = function()
vim.cmd('colorscheme ansi')
vim.opt.termguicolors = false
end,
}Using packer.nvim
use {
'stevedylandev/ansi-nvim',
config = function()
vim.cmd('colorscheme ansi')
vim.opt.termguicolors = false
end
}Simply set the colorscheme in your Neovim configuration:
vim.cmd('colorscheme ansi')If you don't see colors, make sure you have true color tured off. This is often turned on for colorschemes
vim.opt.termguicolors = falseYou can configure the colorscheme by passing options to the setup function:
require('ansi').setup({
-- All options default to true
telescope = true, -- Telescope plugin
telescope_borders = false, -- Telescope borders
indentblankline = true, -- Indent-blankline plugin
notify = true, -- Nvim-notify plugin
ts_rainbow = true, -- Rainbow parentheses
cmp = true, -- Nvim-cmp plugin
illuminate = true, -- vim-illuminate plugin
lsp_semantic = true, -- LSP semantic tokens
mini_completion = true, -- mini.completion plugin
dapui = true, -- nvim-dap-ui plugin
})The base for this plugin is pulled from base16-nvim
