Skip to content

Bug: nvim-tree does not respects the call functions when opening nvim nvim . #1602

Closed
@theSafdarAwan

Description

@theSafdarAwan

Description

maybe this is not big issue for some one but i like to have ColorColumn enabled when i am writing code so that when i exceed 81 characters of code in one line it will show me a boundry but somehow nvim-trre does not respects that.

This is my config for the colorcolumn.

vim.cmd([[
    call matchadd('ColorColumn', '\%80v') 
    " this will use the Color defined in you theme for the ColorColumn
]])

this will only work when a line exceeds 81 characters of code on one line you can use the set colorcolumn if you want but the problem remains even after setting the normal option of set colorcolumn.

NOTE: This is only issue with the nvim-tree when i open it using the nvim ..

Neovim version

NVIM v0.8.0-dev-1112-g6d557e324
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

Operating system and version

5.17.15-1-MANJARO x86_64 GNU/Linux

nvim-tree version

52b0c32

Minimal config

require("nvim-tree").setup({
	auto_reload_on_write = true,
)}

Steps to reproduce

  1. Go to any code directory
  2. start nvim using nvim . to start it in the current directory so that nvim-tree starts up.

Expected behavior

Do not change the colorcolumn behavior

Actual behavior

Nop

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions