-- vim: ts=2 sts=2 sw=2 et -- Install lazylazy -- https://github.com/folke/lazy.nvim 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, } end vim.opt.rtp:prepend(lazypath) require 'options' require 'keymaps' require('lazy').setup { checker = { -- Automatically check for updates enabled = true, }, spec = { -- Useful plugin to show you pending keybinds. -- https://github.com/folke/which-key.nvim { 'folke/which-key.nvim', event = 'VimEnter', -- Sets the loading event to 'VimEnter' priority = 1001, -- Make sure to load this as soon as possible config = function() -- This is the function that runs, AFTER loading local wk = require 'which-key' wk.setup() wk.add { { 'b', group = '[b] Buffer' }, { 'c', group = '[c] Code' }, { 'd', group = '[d] Document' }, { 'f', group = '[f] File' }, { 'g', group = '[g] Git' }, { 'l', group = '[l] LSP' }, { 'o', group = '[o] Open' }, { 'p', group = '[p] Project' }, { 'q', group = '[q] Quit' }, { 's', group = '[s] Search' }, { 't', group = '[t] Toggle' }, { 'w', group = '[w] Workspace' }, { 'z', group = '[x] FZF' }, { '?', group = '[?] Help' }, { '?w', function() wk.show { global = false } end, desc = 'Buffer Local Keymaps (which-key)', }, } end, }, -- Import plugins from `lua/plugins` directory { import = 'plugins' }, }, } require 'config.misc'