all repos — dotfiles @ da6bafe3e51a56e52ad0dbcc320d939d38449b52

linux dotfiles

nvim: nvim tree back to left
Prithu Goswami pg@prithu.dev
Tue, 17 Dec 2024 20:27:36 +0530
commit

da6bafe3e51a56e52ad0dbcc320d939d38449b52

parent

11db1ea701480e9966dc687296cbfbc5b05f32de

1 files changed, 11 insertions(+), 3 deletions(-)

jump to
M config/nvim/lua/plugins/nvimtree.luaconfig/nvim/lua/plugins/nvimtree.lua

@@ -1,4 +1,4 @@

-local tree_width_ratio = 0.3 +local tree_width_ratio = 0.18 local tree_height_ratio = 0.82014 return {

@@ -18,10 +18,11 @@ update_focused_file = {

enable = true, }, view = { + preserve_window_proportions = true, centralize_selection = true, signcolumn = 'auto', float = { - enable = true, + enable = false, quit_on_focus_loss = true, open_win_config = function() local screen_w = vim.opt.columns:get()

@@ -54,14 +55,21 @@ enable = true,

}, actions = { open_file = { + quit_on_open = true, window_picker = { enable = false, }, }, }, + tab = { + sync = { + open = true, + close = true, + }, + }, renderer = { indent_markers = { - enable = false, + enable = true, }, icons = { show = {