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/format.lua | 4 ---- nvim/lua/plugins/git.lua | 15 +++++++------ nvim/lua/plugins/telescope.lua | 5 +++++ nvim/lua/plugins/ui.lua | 48 ++++++++++++++++++++---------------------- 4 files changed, 36 insertions(+), 36 deletions(-) (limited to 'nvim/lua/plugins') diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua index 9334465..d6942a8 100644 --- a/nvim/lua/plugins/format.lua +++ b/nvim/lua/plugins/format.lua @@ -30,8 +30,4 @@ return { lsp_format = "fallback", }, }, - - config = function(_, opts) - require("conform").setup(opts) - end, } diff --git a/nvim/lua/plugins/git.lua b/nvim/lua/plugins/git.lua index 94032c7..ed7bafe 100644 --- a/nvim/lua/plugins/git.lua +++ b/nvim/lua/plugins/git.lua @@ -2,13 +2,14 @@ return { { "lewis6991/gitsigns.nvim", event = { "BufReadPre", "BufNewFile" }, - config = function() - require("gitsigns").setup({ - current_line_blame = true, - current_line_blame_opts = { - delay = 250, - }, - }) + opts = { + current_line_blame = true, + current_line_blame_opts = { + delay = 250, + }, + }, + config = function(_, opts) + require("gitsigns").setup(opts) require("config.keymaps").gitsigns() end, }, diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua index 8c2cae5..bbf33ce 100644 --- a/nvim/lua/plugins/telescope.lua +++ b/nvim/lua/plugins/telescope.lua @@ -5,6 +5,11 @@ return { "nvim-lua/plenary.nvim", }, lazy = true, + opts = { + defaults = { + path_display = { "truncate" }, + }, + }, keys = { { "ff", "Telescope find_files", desc = "Find files" }, { "fg", "Telescope live_grep", desc = "Live grep" }, 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