Status column highlight group #2640
-
Before this commit e9c5abe, my column for relative number (left-most column) looked like this: How can I change the color of the this column to be like before? P.S: I'm using tokyonight.nvim colorscheme |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 1 reply
-
Naive replication with clean room config :set number
:colorscheme tokyonight resulted in the following. The inverted tree window number highlighting is also not shown. That doesn't really prove much, as there appear to be other highlighting and colour changes present. What other plugins are you running? Can you incrementally disable them until you reach something like the above? |
Beta Was this translation helpful? Give feedback.
-
I disabled all other plugins but the issue is still there. |
Beta Was this translation helpful? Give feedback.
-
FYI, this is my setup: local M = {}
function M.setup()
vim.o.background = 'dark'
local tokyonight = require('tokyonight')
tokyonight.setup({
style = 'storm',
transparent = false,
styles = {
sidebars = 'transparent',
floats = 'transparent',
},
})
tokyonight.load()
end
return M For local M = {}
-- maps tabpage with win id that opens nvim-tree
local open_win = {}
local function map_win_id()
local current_tab = vim.api.nvim_get_current_tabpage()
local current_win_id = vim.fn.win_getid()
open_win[current_tab] = current_win_id
end
local function opts(bufnr, desc)
return { buffer = bufnr, nowait = true, desc = desc }
end
function M.setup()
local map = vim.keymap.set
local unmap = vim.keymap.del
local api = require('nvim-tree.api')
local function open_tab_silent(node)
api.node.open.tab(node)
vim.cmd.tabprev()
end
local function open_tab(node)
api.node.open.tab(node)
vim.cmd.tabprev()
api.tree.close()
vim.cmd.tabnext()
end
local function goto_buffer_cwd()
local current_tab = vim.api.nvim_get_current_tabpage()
vim.fn.win_gotoid(open_win[current_tab])
api.tree.find_file({ open = true, update_root = true, focus = true })
end
require('nvim-tree').setup({
disable_netrw = true,
on_attach = function(bufnr)
api.config.mappings.default_on_attach(bufnr)
-- custom mappings
unmap('n', '<C-t>', { buffer = bufnr })
map('n', '<C-t>', open_tab, opts(bufnr, 'open in new tab'))
map('n', 'T', open_tab_silent, opts(bufnr, 'open in new tab without switching tab'))
map('n', 'CD', goto_buffer_cwd, opts(bufnr, 'point to file explorer node of current window'))
map('n', '<C-s>', api.node.open.horizontal, opts(bufnr, 'open file horizontally (split window)'))
map('n', '?', api.tree.toggle_help, opts(bufnr, 'show help'))
end,
git = {
ignore = false,
},
view = {
relativenumber = true,
},
})
end
function M.keymaps()
require('which-key').register({
['<F2>'] = {
function()
vim.cmd.stopinsert()
local api = require('nvim-tree.api')
if api.tree.is_visible() then
api.tree.close()
else
map_win_id()
api.tree.open()
end
end,
'Toggle Tree (file explorer)',
},
}, { mode = { 'n', 'i', 'v' } })
end
return M |
Beta Was this translation helpful? Give feedback.
-
Still no luck... I'm not seeing these elements, which have been disrupted. What's rendering them? |
Beta Was this translation helpful? Give feedback.
-
Oh, they are just borderline from Yakuake terminal, not really a problem. |
Beta Was this translation helpful? Give feedback.
-
And the |
Beta Was this translation helpful? Give feedback.
-
This is not something I normally do, however it is a special case following a massive restructure. Please provide your full, complete configuration so that I may replicate and identify the issue:
I'll get to this one first thing next weekend. |
Beta Was this translation helpful? Give feedback.
-
Here is my minimal config to reproduce the problem: local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable',
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
vim.loader.enable()
local opt = vim.opt
opt.termguicolors = true
opt.relativenumber = true
opt.signcolumn = 'yes'
require('lazy').setup({
{
'folke/tokyonight.nvim',
priority = 100,
config = function()
vim.o.background = 'dark'
local tokyonight = require('tokyonight')
tokyonight.setup({
style = 'storm',
transparent = false,
styles = {
sidebars = 'transparent',
floats = 'transparent',
},
})
tokyonight.load()
end,
},
{
'nvim-tree/nvim-tree.lua',
config = function()
require('nvim-tree').setup({
disable_netrw = true,
git = {
ignore = false,
},
view = {
relativenumber = true,
},
})
end,
},
}) |
Beta Was this translation helpful? Give feedback.
-
Thank you. I can see that this is not being obeyed when
Likely related: #2394 (comment) |
Beta Was this translation helpful? Give feedback.
-
It fixes my issue, thank you! |
Beta Was this translation helpful? Give feedback.
@TroySigX I'd be most grateful for your testing the fix #2652
cd /path/to/nvim-tree.lua git pull git checkout 2651-line-nr-above-below
When you're finished testing: