Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't play well with lazyvim plugins #84

Closed
nadeemkhedr opened this issue Jun 24, 2024 · 3 comments
Closed

Doesn't play well with lazyvim plugins #84

nadeemkhedr opened this issue Jun 24, 2024 · 3 comments

Comments

@nadeemkhedr
Copy link

I created an issue in lazyvim LazyVim/LazyVim#3795

But found the issue wasn't related to lazyvim, the issue is one of the plugins in lazyvim dosen't play well with window-picker (most likely noice), Not sure which one

When adding a change and doing an undo will show a message on the bottom right, when that message is shown and trying to select a window using neo-tree getting, details are in the other issue created in LazyVim

2024-06-24_13-58-33

I am sure this can be configured, not sure how tbh

@nadeemkhedr
Copy link
Author

issue was with noice adding noice to the excluded file types fixed the issue for me

return {
  "s1n7ax/nvim-window-picker",
  name = "window-picker",
  event = "VeryLazy",
  version = "2.*",
  config = function()
    require("window-picker").setup({
      selection_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
      filter_rules = {
        include_current_win = false,
        autoselect_one = true,
        -- filter using buffer options
        bo = {
          -- if the file type is one of following, the window will be ignored
          filetype = { "neo-tree", "neo-tree-popup", "notify", "noice" },
          -- if the buffer type is one of following, the window will be ignored
          buftype = { "terminal", "quickfix" },
        },
      },
    })
  end,
}

@i11010520
Copy link

issue was with noice adding noice to the excluded file types fixed the issue for me

return {
  "s1n7ax/nvim-window-picker",
  name = "window-picker",
  event = "VeryLazy",
  version = "2.*",
  config = function()
    require("window-picker").setup({
      selection_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
      filter_rules = {
        include_current_win = false,
        autoselect_one = true,
        -- filter using buffer options
        bo = {
          -- if the file type is one of following, the window will be ignored
          filetype = { "neo-tree", "neo-tree-popup", "notify", "noice" },
          -- if the buffer type is one of following, the window will be ignored
          buftype = { "terminal", "quickfix" },
        },
      },
    })
  end,
}

I copied this config into .config/lua/plugin/, after reloading nvim and press w above some file in the left neo-tree view, the window identifier letter cannot appear.

@i11010520
Copy link

i11010520 commented Aug 6, 2024

issue was with noice adding noice to the excluded file types fixed the issue for me

return {
  "s1n7ax/nvim-window-picker",
  name = "window-picker",
  event = "VeryLazy",
  version = "2.*",
  config = function()
    require("window-picker").setup({
      selection_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
      filter_rules = {
        include_current_win = false,
        autoselect_one = true,
        -- filter using buffer options
        bo = {
          -- if the file type is one of following, the window will be ignored
          filetype = { "neo-tree", "neo-tree-popup", "notify", "noice" },
          -- if the buffer type is one of following, the window will be ignored
          buftype = { "terminal", "quickfix" },
        },
      },
    })
  end,
}

I copied this config into .config/lua/plugin/, after reloading nvim and press w above some file in the left neo-tree view, the window identifier letter cannot appear.

I figure out.
Inserting a line of hint = 'floating-big-letter' into the setup() block will make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants