Skip to content

stevedylandev/ansi-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansi-nvim

A colorscheme that adapts to your terminal colors through ANSI values

Gif Demo

Warning

This extension is still under development; if you experience problems please open an issue!

Features

  • 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

Installation

Using lazy.nvim

{
  'stevedylandev/ansi-nvim',
  lazy = false,
  priority = 1000,
  config = function()
    vim.cmd('colorscheme ansi')
    vim.opt.termguicolors = false
  end,
}
use {
  'stevedylandev/ansi-nvim',
  config = function()
    vim.cmd('colorscheme ansi')
    vim.opt.termguicolors = false
  end
}

Usage

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 = false

Configuration

You 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
})

Credits

The base for this plugin is pulled from base16-nvim

About

A neovim colorscheme that follows your terminal

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published