rose-pine/neovim

bug: netrw directories do not have colours

Closed this issue · 1 comments

Neovim version (nvim -v)

0.9.2

Terminal / multiplexer

iTerm2

Describe the bug

rose-pine commit 2a4aad8 does not colour directories in netrw:

Screenshot 2024-01-26 at 08 11 05

while commit e29002c (the last one I had before I updated rose-pine) did:

Screenshot 2024-01-25 at 23 11 56

Could we colour directories in netrw like it was before? It's easier to distinguish directories from files if they are coloured differently.

Thanks!

Repro

vim.o.packpath = "/tmp/nvim/site"

local plugins = {
  rose_pine = "https://github.com/rose-pine/neovim",
}

for name, url in pairs(plugins) do
  local install_path = "/tmp/nvim/site/pack/test/start/" .. name
  if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system({ "git", "clone", "--depth=1", url, install_path })
  end
end

require("rose-pine").setup({})

vim.cmd("colorscheme rose-pine")

That's fair, the bold varies quite heavily depending on font/weights. It is coloured, however, if you set styles.bold = false but we probably should always colour them.

You could add this to your config until a change is pushed:

{
  highlight_groups = {
    Directory = {fg = "foam"}
  }
}