From a32edb98ec44a0556d2a087e3672dd2b065c18d3 Mon Sep 17 00:00:00 2001 From: Dominik Madarasz Date: Tue, 21 May 2024 22:20:38 +0000 Subject: [PATCH] auto --- nvim/.config/nvim/lazy-lock.json | 3 +- nvim/.config/nvim/lua/zak/plugins.lua | 115 ++++++++++++++------------ 2 files changed, 65 insertions(+), 53 deletions(-) diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index e8e59c2..586f82e 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -20,5 +20,6 @@ "telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" }, "telescope.nvim": { "branch": "master", "commit": "d829aa64059001ee7b2c8c8aa9c4e6df0b17d893" }, "undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" }, - "vim-fugitive": { "branch": "master", "commit": "4f59455d2388e113bd510e85b310d15b9228ca0d" } + "vim-fugitive": { "branch": "master", "commit": "4f59455d2388e113bd510e85b310d15b9228ca0d" }, + "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" } } \ No newline at end of file diff --git a/nvim/.config/nvim/lua/zak/plugins.lua b/nvim/.config/nvim/lua/zak/plugins.lua index ff40ba3..101d8cd 100644 --- a/nvim/.config/nvim/lua/zak/plugins.lua +++ b/nvim/.config/nvim/lua/zak/plugins.lua @@ -3,66 +3,77 @@ -- Bootstrap lazy.nvim if not already installed local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' if not vim.loop.fs_stat(lazypath) then - vim.fn.system({ - 'git', - 'clone', - '--filter=blob:none', - 'https://github.com/folke/lazy.nvim.git', - '--branch=stable', -- latest stable release - lazypath, - }) + vim.fn.system({ + 'git', + 'clone', + '--filter=blob:none', + 'https://github.com/folke/lazy.nvim.git', + '--branch=stable', -- latest stable release + lazypath, + }) end vim.opt.rtp:prepend(lazypath) return require('lazy').setup({ - { - 'nvim-telescope/telescope.nvim', - tag = '0.1.7', - dependencies = { 'nvim-lua/plenary.nvim' } - }, + { + 'folke/which-key.nvim', + event = "VeryLazy", + init = function() + vim.o.timeout = true + vim.o.timeoutlen = 300 + end, + opts = { - { - 'rose-pine/neovim', - name = 'rose-pine', - config = function() - vim.cmd('colorscheme rose-pine') - end - }, + } + }, + { + 'nvim-telescope/telescope.nvim', + tag = '0.1.7', + dependencies = { 'nvim-lua/plenary.nvim' } + }, - { - 'nvim-treesitter/nvim-treesitter', - build = ':TSUpdate' - }, - 'nvim-treesitter/playground', + { + 'rose-pine/neovim', + name = 'rose-pine', + config = function() + vim.cmd('colorscheme rose-pine') + end + }, - { - 'nvim-telescope/telescope-fzf-native.nvim', - build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' - }, - 'theprimeagen/harpoon', - 'mbbill/undotree', - 'tpope/vim-fugitive', + { + 'nvim-treesitter/nvim-treesitter', + build = ':TSUpdate' + }, + 'nvim-treesitter/playground', - { - 'VonHeikemen/lsp-zero.nvim', - branch = 'v3.x', - dependencies = { - -- Uncomment the two plugins below if you want to manage the language servers from neovim - 'williamboman/mason.nvim', - 'williamboman/mason-lspconfig.nvim', + { + 'nvim-telescope/telescope-fzf-native.nvim', + build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' + }, + 'theprimeagen/harpoon', + 'mbbill/undotree', + 'tpope/vim-fugitive', - 'neovim/nvim-lspconfig', - 'hrsh7th/nvim-cmp', - 'hrsh7th/cmp-buffer', - 'hrsh7th/cmp-path', - 'hrsh7th/cmp-nvim-lsp', - 'hrsh7th/cmp-nvim-lua', - 'L3MON4D3/LuaSnip', + { + 'VonHeikemen/lsp-zero.nvim', + branch = 'v3.x', + dependencies = { + -- Uncomment the two plugins below if you want to manage the language servers from neovim + 'williamboman/mason.nvim', + 'williamboman/mason-lspconfig.nvim', + + 'neovim/nvim-lspconfig', + 'hrsh7th/nvim-cmp', + 'hrsh7th/cmp-buffer', + 'hrsh7th/cmp-path', + 'hrsh7th/cmp-nvim-lsp', + 'hrsh7th/cmp-nvim-lua', + 'L3MON4D3/LuaSnip', + } + }, + + { + 'zbirenbaum/copilot.lua', + dependencies = 'zbirenbaum/copilot-cmp' } - }, - - { - 'zbirenbaum/copilot.lua', - dependencies = 'zbirenbaum/copilot-cmp' - } })