From 3866873ac8a261896a434503f5c3b880a3d68d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20L=C3=BCdecke?= Date: Thu, 3 Apr 2025 07:51:05 +0200 Subject: [PATCH] Neo-tree: tab to toggle nodes (folders), added nvim-lsp-file-operations --- lua/plugins.lua | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 7265c7f..5b4a2e8 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -285,7 +285,31 @@ require("lazy").setup({ "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended "MunifTanjim/nui.nvim", -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information - } + }, + config = function() + require("neo-tree").setup({ + window = { + position = "left", + width = 60, + mappings = { + [""] = { + "toggle_node", + nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use + }, + } + } + }) + end + }, + { + "antosha417/nvim-lsp-file-operations", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-neo-tree/neo-tree.nvim", + }, + config = function() + require("lsp-file-operations").setup() + end, }, -- workspaces, lightweight "projects" @@ -419,7 +443,7 @@ require("lazy").setup({ local userName = "You work as '" .. vim.env.USER .. "'." - + -- Calculate padding for centering the username local userNameWidth = #userName local padding = math.floor((logoWidth - userNameWidth) / 2) @@ -561,7 +585,7 @@ require("lazy").setup({ event = "VeryLazy", opts = { default_provider = "ollama", - edgy = true, -- enable this! + edgy = true, -- enable this! single_window = false, -- set this to true if you want only one OGPT window to appear at a time providers = { ollama = { @@ -692,6 +716,9 @@ require("lazy").setup({ }, }, }, - } + }, + + -- new plugins here + }, })