Git Product home page Git Product logo

Comments (5)

backdround avatar backdround commented on June 25, 2024 1

I'll see if i can do something about it.

Thank you for the nice plugin!

from deadcolumn.nvim.

Bekaboo avatar Bekaboo commented on June 25, 2024

Thanks for reporting this issue. I doubt if there's anything we can do for this issue given how winhl and highlight namespace work in nvim. Switching to nvim_win_set_hl_ns requires heavy refactor and I have no intention to do this because. I don't use ccc.nvim

from deadcolumn.nvim.

backdround avatar backdround commented on June 25, 2024

I checked the API. This isn't possible to have several namespaces set simultaneously for a window by nvim_win_set_hl_ns. So switching to nvim_win_set_hl_ns won't fix the problem.

I see only two way of fixing this:

  • Set highlight globally and manage colorcolumn manually (to show / hide it)
  • Use virtual text

Edit:
The last nvim_win_set_hl_ns always overrides previous nvim_win_set_hl_ns

from deadcolumn.nvim.

Bekaboo avatar Bekaboo commented on June 25, 2024

Set highlight globally and manage colorcolumn manually (to show / hide it)

Before commit ce15b17 deadcolimn manage colorcolumn manually, but this method is proven unreliable and can easily cause confusion and bugs. Nvim/Vim uses a very complex mechanism to set options, especially for global-local options like colorcolumn (see :h global-local) and that's why I refactored this plugin to use winhl instead of managing colorcolumn manually.

Use virtual text

Needs complete rewrite.

from deadcolumn.nvim.

Bekaboo avatar Bekaboo commented on June 25, 2024

The only way I see to fix this is requiring ccc.nvim to switch to winhl. One can append/remove hlgroup mapping to winhl without affecting existing hl mappings, see :h vim.opt:append(), :h vim.opt:remove().

from deadcolumn.nvim.

Related Issues (17)

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.