Git Product home page Git Product logo

numb.nvim's Introduction

numb.nvim

numb.nvim is a Neovim plugin that peeks lines of the buffer in non-obtrusive way.

Features

Peeking the buffer while entering command :{number}

demo

The colorscheme is vim-substrata

Installation

Packer

use 'nacro90/numb.nvim'

Paq

paq 'nacro90/numb.nvim'

Plug

Plug 'nacro90/numb.nvim'

Usage

Setup with default options:

require('numb').setup()

If you are using a init.vim instead of init.lua, you will need to load the plugin like this:

:lua require('numb').setup()

Disable the plugin globally:

require('numb').disable()

After you disable the plugin, you can re-enable it by calling the setup again.

Options

You can customize the behaviour with following:

require('numb').setup{
  show_numbers = true, -- Enable 'number' for the window while peeking
  show_cursorline = true, -- Enable 'cursorline' for the window while peeking
  hide_relativenumbers = true -- Enable turning off 'relativenumber' for the window while peeking
  number_only = false, -- Peek only when the command is only a number instead of when it starts with a number
  centered_peeking = true, -- Peeked line will be centered relative to window
}

After running setup, you are good to go. You can try with entering a number to the vim command line like :3.

When you disable numb, your options are kept in the module level. So after you disable it, if you call setup() with no overrides, numb will be enabled with your customized options (or default ones if you don't have any). You can override the options again with calling setup{...} as mentioned above.

numb.nvim's People

Contributors

nacro90 avatar nsteinhoff avatar ouuan avatar thallada avatar xithrius avatar yutkat 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.