From 45e44ee30aaa4296816b90a3c6d0857b078da6be Mon Sep 17 00:00:00 2001 From: Adam Cooper Date: Sun, 29 Oct 2023 01:16:53 -0400 Subject: [PATCH] [neovim] Add which-key plugin --- neovim/init.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/neovim/init.lua b/neovim/init.lua index a46a391..fec81ee 100644 --- a/neovim/init.lua +++ b/neovim/init.lua @@ -82,10 +82,7 @@ require("lazy").setup({ "nvim-tree/nvim-web-devicons", "nvim-lua/plenary.nvim", { "nvim-telescope/telescope.nvim", branch = "0.1.x" }, - { - "nvim-treesitter/nvim-treesitter", - build = ":TSUpdate", - }, + { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" }, "neovim/nvim-lspconfig", "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-buffer", @@ -97,6 +94,14 @@ require("lazy").setup({ "tpope/vim-fugitive", "lewis6991/gitsigns.nvim", "tpope/vim-surround", + { + "folke/which-key.nvim", + event = "VeryLazy", + init = function() + vim.o.timeout = true + vim.o.timeoutlen = 300 + end, + } }) require('mason').setup()