Coder Social home page Coder Social logo

Comments (4)

JMcKiern avatar JMcKiern commented on August 26, 2024

Hmm, I can't replicate this with NVIM v0.5.0 (their latest nightly job failed so there is no nightly release is available - and I can't be bothered to build from source).

The only time number and relativenumber are modified is in the snippet below but this should only change what is shown in the newly created window from L135 as both settings are "local to window".

execute 'vertical '.a:pos.' new'
" Add empty lines
call append(0, map(range(0, &lines), '""'))
normal! gg
" Buffer settings
set nonumber norelativenumber nocursorline nocursorcolumn
setlocal buftype=nofile bufhidden=wipe nomodifiable nobuflisted

If I remember to, I will try to replicate this bug with the next neovim nightly.

from vim-venter.

zijian-x avatar zijian-x commented on August 26, 2024

Maybe it is caused by other plugins so I tested again with a minimal config(config.vim) consisting of

set rnu nu

call plug#begin('$XDG_DATA_HOME/nvim/site/plugged')
	Plug 'jmckiern/vim-venter'
call plug#end()
nnoremap ,z <CMD>VenterToggle<CR>

and running nvim -u config.vim buf1 buf2, using ,z start venter, and then just :bd to delete the first buffer and untoggle venter mode, displaying a [No Name] buffer with relative number and number unset, which can be resetted via set rnu nu again.
Removed the nightly and installed the stable version from official repo (pacman -S neovim) caused the same thing on my machine.
Unfortunately I am so illiterate with it comes to vimL, and it's a minor thing anyway and I've been using a custom command to delete buffers while in venter mode via b# | bd #, which works flawlessly except when there is only a single buffer.

from vim-venter.

zijian-x avatar zijian-x commented on August 26, 2024

Update:
I've tried an other minimal plugin henriquehbr/ataraxis.lua, with which it also disabled rnu and nu on closing the buffer. Now I think it's rather an internal issue, rather than an issue with the plugins itself.

from vim-venter.

JMcKiern avatar JMcKiern commented on August 26, 2024

Interesting, thanks for getting back!

from vim-venter.

Related Issues (10)

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.