From 3a6258ccf038b0378fec49888ed08dd4269f0e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20SALVI?= Date: Sat, 11 Jan 2025 19:32:59 +0100 Subject: [PATCH] refactoring --- lua/config/nvim-tree.lua | 54 ++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/lua/config/nvim-tree.lua b/lua/config/nvim-tree.lua index 1c3792e..564fce9 100644 --- a/lua/config/nvim-tree.lua +++ b/lua/config/nvim-tree.lua @@ -1,7 +1,7 @@ --- Ensure plugin is avaiable local ok, nvimtree = pcall(require, "nvim-tree") if not ok then - return + return end --- Unload netrw @@ -10,32 +10,32 @@ vim.g.loaded_netrwPlugin = 1 --- Plugin options local opts = { - sort = { - -- sorter = "case_sensitive", - }, - view = { - width = 30, - }, - renderer = { - group_empty = true, - indent_markers = { - enable = true, - }, - icons = { - glyphs = { - folder = { - arrow_closed = "", -- arrow when folder is closed - arrow_open = "", -- arrow when folder is open - }, - }, - }, - }, - filters = { - dotfiles = false, - }, - diagnostics = { - enable = true, - }, + sort = { + -- sorter = "case_sensitive", + }, + view = { + width = 30, + }, + renderer = { + group_empty = true, + indent_markers = { + enable = true, + }, + icons = { + glyphs = { + folder = { + arrow_closed = "", -- arrow when folder is closed + arrow_open = "", -- arrow when folder is open + }, + }, + }, + }, + filters = { + dotfiles = false, + }, + diagnostics = { + enable = true, + }, } --- Load plugin