Giter Club home page Giter Club logo

vim-lightline-coc's Introduction

lightline-coc

This plugin provides coc diagnostics indicator for the lightline vim plugin.

Example

Installation

Install using a plugin manager of your choice, for example vim-plug:

Plug 'josa42/vim-lightline-coc'

Components

  • coc_errors Number of diagnostics errors
  • coc_warnings Number of diagnostics warnings
  • coc_info Number of diagnostics information messages
  • coc_hints Number of diagnostics hints
  • coc_ok Checkmark if there are no errors or warnings
  • coc_status Show status messages if there are any.

Integration

let g:lightline = {
  \   'active': {
  \     left': [[  'coc_info', 'coc_hints', 'coc_errors', 'coc_warnings', 'coc_ok' ], [ 'coc_status'  ]]
  \   }
  \ }

" register compoments:
call lightline#coc#register()

Or register manually

" Register the components:
let g:lightline = {}
let g:lightline.component_expand = {
  \   'linter_warnings': 'lightline#coc#warnings',
  \   'linter_errors': 'lightline#coc#errors',
  \   'linter_info': 'lightline#coc#info',
  \   'linter_hints': 'lightline#coc#hints',
  \   'linter_ok': 'lightline#coc#ok',
  \   'status': 'lightline#coc#status',
  \ }

" Set color to the components:
let g:lightline.component_type = {
  \   'linter_warnings': 'warning',
  \   'linter_errors': 'error',
  \   'linter_info': 'info',
  \   'linter_hints': 'hints',
  \   'linter_ok': 'left',
  \ }

" Add the components to the lightline:
let g:lightline.active = {
  \   left': [[ 'coc_info', 'coc_hints', 'coc_errors', 'coc_warnings', 'coc_ok' ], [ 'coc_status'  ]]
  \ }

Configuration

  • g:lightline#coc#indicator_warnings The indicator to use when there are warnings. Default is .

  • g:lightline#coc#indicator_errors The indicator to use when there are errors. Default is ×.

  • g:lightline#coc#indicator_info The indicator to use when there are information messages. Default is ~.

  • g:lightline#coc#indicator_hints The indicator to use when there are hints. Default is >.

  • g:lightline#coc#indicator_ok The indicator to use when there are no warnings or errors. Default is .

Credit

License

MIT © Josa Gesell

vim-lightline-coc's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vim-lightline-coc's Issues

Two typos in README.md

In both integration examples, there are missing opening single quotes before left. See lines 29 and 62.

Fixed in pull request #5.

Function under cursor

It would be create to have the function signature displayed of the function you are currently editing.

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.