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

Avoid nvim-tree update_focused_file on saga finder (go to def) #1476

Open
diegoulloao opened this issue Jul 27, 2024 · 0 comments
Open

Avoid nvim-tree update_focused_file on saga finder (go to def) #1476

diegoulloao opened this issue Jul 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@diegoulloao
Copy link

diegoulloao commented Jul 27, 2024

Describe the bug

Everytime I press go to definition (sagafinder) the nvim-tree is auto focusing the file inside the floating window.

I'm trying to avoid this behavior:

Screen.Recording.mp4

I tried adding sagafinder, SagaFinder, Saga, etc; to the ignore_list option in nvim-tree config but it doesn't work.

return {
  "nvim-tree/nvim-tree.lua",
  version = "*", -- using latest
  opts = {
    -- minimal config
    update_focused_file = {
      enable = true,
      update_root = true,
      ignore_list = { "sagafinder" }, -- adding this should prevent the behavior but it doesn't
    },
  },
}

Also tried printing echo &filetype to check the right value to add to the ignore_list but it prints no type in particular (typescriptreact). &buftype prints nothing.

Steps to reproduce

Check the video. Nvim-tree plugin with the basic config above is needed.

Expected behavior

Prevent the nvim-tree focusing the file inside the sagafinder floating window, a filetype or something should be provided? In order to make it work with the ignore_list in nvim-tree.

Neovim version (nvim -v)

0.10.0

lspsaga commit

6f920cf

Terminal name/version

kitty 0.35.2

@diegoulloao diegoulloao added the bug Something isn't working label Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant