From ffb269393ceabc3b8afb6198588f5225b7d6560b Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 29 Jun 2026 11:02:39 +0200 Subject: lazy.nvim: config() und Optionen getrennt --- nvim/lua/plugins/ui.lua | 48 +++++++++++++++++++++++------------------------- 1 file changed, 23 insertions(+), 25 deletions(-) (limited to 'nvim/lua/plugins/ui.lua') diff --git a/nvim/lua/plugins/ui.lua b/nvim/lua/plugins/ui.lua index cad8dfb..9ee68de 100644 --- a/nvim/lua/plugins/ui.lua +++ b/nvim/lua/plugins/ui.lua @@ -29,33 +29,31 @@ return { keys = { { "e", "NvimTreeToggle", desc = "Explorer toggle" }, }, - config = function() - require("nvim-tree").setup({ - update_focused_file = { - enable = true, - update_root = false, - ignore_list = {}, - }, - view = { - width = 30, - cursorline = true, - }, - renderer = { - highlight_opened_files = "all", - highlight_git = true, - icons = { - show = { - file = true, - folder = true, - git = true, - }, + opts = { + update_focused_file = { + enable = true, + update_root = false, + ignore_list = {}, + }, + view = { + width = 40, + cursorline = true, + }, + renderer = { + highlight_opened_files = "all", + highlight_git = true, + icons = { + show = { + file = true, + folder = true, + git = true, }, }, - filters = { - dotfiles = false, - }, - }) - end, + }, + filters = { + dotfiles = false, + }, + }, }, { -- cgit v1.3