Skip to content

Commit

Permalink
neovim: prevent tree resize on open
Browse files Browse the repository at this point in the history
  • Loading branch information
appaquet committed Jan 24, 2025
1 parent a4348a2 commit 8441d23
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion home-manager/modules/neovim/conf/layout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@ require("nvim-tree").setup {
enable = true,
show_on_dirs = true,
},
}

actions = {
open_file = {
resize_window = false, -- Prevent resizing tree on opening file
},
},
view = {
preserve_window_proportions = false,
},
}
vim.keymap.set('n', '<Leader>e', ':NvimTreeToggle<CR>', { desc = "Tree: Toggle" })


Expand Down

0 comments on commit 8441d23

Please sign in to comment.