Giter VIP home page Giter VIP logo

Comments (10)

denstiny avatar denstiny commented on August 15, 2024
events = { "WinEnter", "BufEnter", "WinResized", "WinClosed", "VimResized", "SessionLoadPost" },

from colorful-winsep.nvim.

Rydwxz avatar Rydwxz commented on August 15, 2024

Thank you for your input, but I'm not certain what to do with that. I changed event = { "WinNew"}, to events = { "WinEnter", "BufEnter", "WinResized", "WinClosed", "VimResized", "SessionLoadPost" }, as well as events = { "WinEnter", "SessionLoadPost",}, but the divider still appears in the same spot, only now it is normal fg color instead of the hl I set in the config. I tried these lines with and without the son the end of event and I also tried removing the line entirely.

from colorful-winsep.nvim.

denstiny avatar denstiny commented on August 15, 2024

Thank you for your input, but I'm not certain what to do with that. I changed event = { "WinNew"}, to events = { "WinEnter", "BufEnter", "WinResized", "WinClosed", "VimResized", "SessionLoadPost" }, as well as events = { "WinEnter", "SessionLoadPost",}, but the divider still appears in the same spot, only now it is normal fg color instead of the hl I set in the config. I tried these lines with and without the son the end of event and I also tried removing the line entirely.

https://github.com/denstiny/dotfiles/blob/eb1216edd268dbc85f9d8597a89c97b67dea36c0/nvim/lua/plugin/ui/init.lua#L51-L59
this is my config.

from colorful-winsep.nvim.

denstiny avatar denstiny commented on August 15, 2024

Don't forget to check out my require"plugin.ui.winsep" content

from colorful-winsep.nvim.

timtyrrell avatar timtyrrell commented on August 15, 2024

I have been experiencing the same issue, although I can trigger the problem without using sessions. Anytime I run :NvimTreeToggle, :NvimTreeFindFile, or :NvimTreeToggle it happens. I tried all of the event configs mentioned above but it had no effect.

from colorful-winsep.nvim.

denstiny avatar denstiny commented on August 15, 2024

I have been experiencing the same issue, although I can trigger the problem without using sessions. Anytime I run :NvimTreeToggle, :NvimTreeFindFile, or :NvimTreeToggle it happens. I tried all of the event configs mentioned above but it had no effect.

Can you please provide the minimum reproducible configuration and reproduction steps?

from colorful-winsep.nvim.

timtyrrell avatar timtyrrell commented on August 15, 2024

@denstiny I figured out it. Removing NvimTree from the no_exec_files array fixed it. Maybe I don't have the same issue here and I apologize. Let me know if you want me to open a new issue and I can copy this over.

Steps to duplicate:

  • use mini.vim
  • :e file1
  • :vsp
  • :NvimTreeToggle
mini.vim set nocompatible filetype plugin indent on syntax on set hidden

call plug#begin('~/.config/nvim/plugged')

Plug 'nvim-zh/colorful-winsep.nvim'
Plug 'kyazdani42/nvim-tree.lua'

call plug#end()

lua << EOF

require("colorful-winsep").setup({
no_exec_files = { "NvimTree" },
-- either one of these events arrays causes the issue
-- events = { "VimResume", "WinEnter", "BufEnter", "WinResized", "WinClosed", "VimResized", "SessionLoadPost" },
event = { "WinNew" },
})

require('nvim-tree').setup { }

EOF

from colorful-winsep.nvim.

denstiny avatar denstiny commented on August 15, 2024

@denstiny I figured out it. Removing NvimTree from the no_exec_files array fixed it. Maybe I don't have the same issue here and I apologize. Let me know if you want me to open a new issue and I can copy this over.

Steps to duplicate:

* use mini.vim

* `:e file1`

* `:vsp`

* `:NvimTreeToggle`

mini.vim
set nocompatible filetype plugin indent on syntax on set hidden

call plug#begin('~/.config/nvim/plugged')

Plug 'nvim-zh/colorful-winsep.nvim' Plug 'kyazdani42/nvim-tree.lua'

call plug#end()

lua << EOF

require("colorful-winsep").setup({ no_exec_files = { "NvimTree" }, -- either one of these events arrays causes the issue -- events = { "VimResume", "WinEnter", "BufEnter", "WinResized", "WinClosed", "VimResized", "SessionLoadPost" }, event = { "WinNew" }, })

require('nvim-tree').setup { }

EOF
Well, this is because after opening the window for nvim-tree, there are other behaviors that exist. The no_exec_files option can fix this. Since I personally use nvim-tree as well as Session, I am quite confused about this issue and have been unable to reproduce the problem

from colorful-winsep.nvim.

denstiny avatar denstiny commented on August 15, 2024

@timtyrrell Furthermore, for the lazy-loading of this plugin, I believe you should use the WinLeave event rather than the WinNew event.

from colorful-winsep.nvim.

denstiny avatar denstiny commented on August 15, 2024
2024-06-05_00-50-44.mp4

from colorful-winsep.nvim.

Related Issues (20)

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.