From 345feb68e83fdcfca389135003a42f6c3ff1a59a Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 9 Mar 2026 10:07:05 +0100 Subject: Neovim: Bessere Ausnutzung von lazy.nvim --- nvim/lua/plugins/editing.lua | 4 ++-- nvim/lua/plugins/telescope.lua | 7 +++++++ nvim/lua/plugins/treesitter.lua | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'nvim/lua/plugins') diff --git a/nvim/lua/plugins/editing.lua b/nvim/lua/plugins/editing.lua index 4a80d2b..d1c3447 100644 --- a/nvim/lua/plugins/editing.lua +++ b/nvim/lua/plugins/editing.lua @@ -1,6 +1,6 @@ return { - { "tpope/vim-repeat" }, - { "tpope/vim-surround" }, + { "tpope/vim-repeat", event = "VeryLazy" }, + { "tpope/vim-surround", event = "VeryLazy" }, { "romainl/vim-cool", diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua index 7633892..8c2cae5 100644 --- a/nvim/lua/plugins/telescope.lua +++ b/nvim/lua/plugins/telescope.lua @@ -5,5 +5,12 @@ return { "nvim-lua/plenary.nvim", }, lazy = true, + keys = { + { "ff", "Telescope find_files", desc = "Find files" }, + { "fg", "Telescope live_grep", desc = "Live grep" }, + { "fb", "Telescope buffers", desc = "Buffers" }, + { "fh", "Telescope help_tags", desc = "Help tags" }, + { "dd", "Telescope diagnostics", desc = "Diagnostics" }, + }, }, } diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index 235c0b5..66cd717 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua @@ -9,7 +9,8 @@ return { "nvim-treesitter/nvim-treesitter", branch = "main", build = ":TSUpdate", - lazy = false, + event = "BufReadPost", + lazy = true, config = function() local treesitter = require("nvim-treesitter") local langs = require("config.treesitter").languages -- cgit v1.3