Giter Site home page Giter Site logo

sitiom / nvim-numbertoggle Goto Github PK

View Code? Open in Web Editor NEW
142.0 142.0 1.0 36 KB

Neovim plugin to automatically toggle between relative and absolute line numbers. Written in Lua.

License: MIT License

JavaScript 9.60% Lua 90.40%
line-numbers lua neovim neovim-plugin nvim

nvim-numbertoggle's Introduction

Banner

Keyoxide:9763AE10706A1E8FCF74E5AEF6FD3820BCBC1A98

Donate using Liberapay

Counter GitHub User's stars

Snake Graph

Metrics

nvim-numbertoggle's People

Contributors

dependabot[bot] avatar hermitmaster avatar sitiom avatar

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

Forkers

archilkarchava

nvim-numbertoggle's Issues

plugin not working?

I'm using the NvChad configuration, which uses Lazy as a plugin manager, I've successfully had it installed. But the switching doesn't seem to be occurring. Not sure what I'm missing. This is what I added to my plugins file:

  {
       "sitiom/nvim-numbertoggle"
  }

Plugin redraws screen when leaving nvim focus in tmux marking the window as having new activity

Hey,

this is a cool plugin, it's useful! However I've needed to disable it unfortunately as it does not play well with tmux. When switching to another window in tmux, it seems like the window just left where nvim is, that this plugin redraws the screen. This causes tmux to alert that something has changed (new output) in the window that was just left, and also marking it as having new activity in the window list.

See the attached video for a demonstration.

Screen.Recording.2022-12-15.at.13.52.33.mov

The expected behavior, which is the case when this plugin is not used in nvim, is that there is no nvim activity when leaving the window, thus no false activity notifications.

Maybe nvim-numbertoggle redraws the screen all the time?

My system:
nvim: 0.8.1
OS: macOS 12.6
nvim-numbertoggle: latest version

causes debug window to not expand

With no plugins, neovim's debug window will expand upwards as you enter more commands. For example if you enter :debug echo "haha" or enter the debugger from a script, you can echo a variable to see it's value, and it will print, and the debug window will expand by however many lines it takes to accommodate the output.

When this plugin is enabled, the height of the debug window is stuck at 1, preventing the user from seeing any of the debug output. Worth mentioning that this behavior does not exists with the vimscript version of this plugin, jeffkreeftmeijer/vim-numbertoggle

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.