Skip to content

Bug: adds line numbers #1417

Closed
Closed
@theSafdarAwan

Description

@theSafdarAwan

Description

i added a configuration to set the line numbers to number when i am in command mode and if i exit the command line mode then it should return back to the relativenumber but the nvim-tree pics up this settings as i open a directory in it.

vim.cmd([[
au CmdLineEnter * set norelativenumber | redraw
au CmdlineLeave * set relativenumber
]])
2022-07-11.19-34-49.mp4

Neovim version

NVIM v0.8.0-dev+479-g35e89bf90
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-11 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=malloc -Wsuggest-attribute=cold -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az139-182

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/share/nvim"

Run :checkhealth for more info

Operating system and version

5.17.15-1-MANJARO i3wm community version

nvim-tree version

0c13bd7..df92f15 letest this is the last commit

Minimal config

no

Steps to reproduce

set this settings

vim.cmd([[
au CmdLineEnter * set norelativenumber | redraw
au CmdlineLeave * set relativenumber
]])

Expected behavior

No response

Actual behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions