Comments (5)
I'll see if i can do something about it.
Thank you for the nice plugin!
from deadcolumn.nvim.
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.
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.
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.
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 (18)
- Repect
- Feature request: show column as usual when it would otherwise not show HOT 4
- Feature request: allow text on the column HOT 3
- Always show colorcolumn if a line crosses it HOT 18
- Plugin doesn't work out of the box HOT 9
- Normal mode when used with scope buffer works but throws below error while opening a file! HOT 2
- How exactly blending works? HOT 18
- Setup error HOT 1
- Errors on colors.lua:41: invalid key: create HOT 3
- Cursor Losing Column Position Issue in Nightly Version HOT 6
- Feature request: virtual text colorcolumn HOT 2
- Adjust behavior based on modes HOT 4
- Plugin un-setting colorcolumn setting HOT 15
- Horizontal cursor position clobbered HOT 7
- [Bug] deadcolumn works only in the first file HOT 6
- Consider tagging stable releases HOT 1
- This plugin doesn't work sometimes HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deadcolumn.nvim.