Replies: 1 comment
-
|
hm I'm not seeing this behavior on main repro init.lua: vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x", -- or "main"
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
-- { "3rd/image.nvim", opts = {} }, -- Optional image support
},
lazy = false,
---@module "neo-tree"
---@type neotree.Config?
opts = {
filesystem = {
filtered_items = {
visible = true, -- show hidden items by default
},
follow_current_file = { enabled = false, leave_dirs_open = true },
},
buffers = {
follow_current_file = { enabled = false, leave_dirs_open = true },
},
},
},
},
})
vim.g.mapleader = " "
vim.keymap.set("n", "<leader>e", "<Cmd>Neotree<CR>")
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Scenario:
Why is that a problem? Well, I often scroll with mouse and I want to double-click to open another file. It happens that the first click scrolls NeoTree so that when the second click lands, I open a completely unrelated file AND I lose mental-focus because of the undesired scroll in a large folder.
I have this in my config:
{ "nvim-neo-tree/neo-tree.nvim", opts = { filesystem = { filtered_items = { visible = true, -- show hidden items by default }, follow_current_file = { enabled = false, leave_dirs_open = true }, }, buffers = { follow_current_file = { enabled = false, leave_dirs_open = true }, }, }, }Does anyone know how can I turn off this scroll feature or another way to handle this issue?
Thank you <3
Beta Was this translation helpful? Give feedback.
All reactions