GithubHelp home page GithubHelp logo

0x00dec0de / vim-todo-highlight Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sakshamgupta05/vim-todo-highlight

0.0 0.0 0.0 12 KB

a Vim/Neovim plugin to highlight todos and fixmes

License: MIT License

Vim Script 100.00%

vim-todo-highlight's Introduction

vim-todo-highlight

a vim plugin to highlight todos and fixmes

Installation

vim-plug

  1. Add the following configuration to your .vimrc.

     Plug 'sakshamgupta05/vim-todo-highlight'
    
  2. Install with :PlugInstall.

Pathogen

  1. Install with the following command.

     git clone https://github.com/sakshamgupta05/vim-todo-highlight ~/.vim/bundle/vim-todo-highlight
    

Vundle

  1. Add the following configuration to your .vimrc.

     Plugin 'sakshamgupta05/vim-todo-highlight'
    
  2. Install with :PluginInstall.

NeoBundle

  1. Add the following configuration to your .vimrc.

     NeoBundle 'sakshamgupta05/vim-todo-highlight'
    
  2. Install with :NeoBundleInstall.

Introduction

This plugin helps you to remember the TODO: and FIXME: you have written in your code by highlighting them inside vim.

Usage

Just type TODO: or FIXME: inside a comment and this plugin will highlight it for you.

Configuration

Default configuration

gui           : HEX colors for terminals that support 24bit true colour
cterm       : 256 colors for terminals that support only 256 colour palette
fg_color : text color
bg_color : background color

{
  'TODO': {
    'gui_fg_color': '#ffffff',
    'gui_bg_color': '#ffbd2a',
    'cterm_fg_color': 'white',
    'cterm_bg_color': '214'
  },
  'FIXME': {
    'gui_fg_color': '#ffffff',
    'gui_bg_color': '#f06292',
    'cterm_fg_color': 'white',
    'cterm_bg_color': '204'
  }
}

Disable default annotations

If you want to disable highlighting for the default annotations, configure as

let g:todo_highlight_disable_default = ['TODO', 'FIXME']

Add custom annotations

To add your own custom annotations and/or customize colors for existing annotations, configure as (if you leave any attribute as blank, the default(TODO) configurations will be used)

let g:todo_highlight_config = {
      \   'REVIEW': {},
      \   'NOTE': {
      \     'gui_fg_color': '#ffffff',
      \     'gui_bg_color': '#ffbd2a',
      \     'cterm_fg_color': 'white',
      \     'cterm_bg_color': '214'
      \   }
      \ }

vim-todo-highlight's People

Contributors

sakshamgupta-idfy avatar sakshamgupta05 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.