From 79f1a1c165c323647765c22dc65b71305d70dabc Mon Sep 17 00:00:00 2001 From: Phillip Nguyen Date: Fri, 24 May 2024 22:46:15 +0700 Subject: [PATCH] update config --- init.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/init.lua b/init.lua index 05050ce2..13b5a0fd 100644 --- a/init.lua +++ b/init.lua @@ -360,6 +360,18 @@ require('lazy').setup({ { 'h', group = 'Git [H]unk', mode = { 'n', 'v' } }, }, }, + config = function() -- this is the function that runs, after loading + require('which-key').setup() + + -- document existing key chains + require('which-key').register { + ['c'] = { name = '[c]ode', _ = 'which_key_ignore' }, + ['d'] = { name = '[d]ocument', _ = 'which_key_ignore' }, + ['r'] = { name = '[r]ename', _ = 'which_key_ignore' }, + ['s'] = { name = '[s]earch', _ = 'which_key_ignore' }, + ['w'] = { name = '[w]orkspace', _ = 'which_key_ignore' }, + } + end, }, -- NOTE: Plugins can specify dependencies. @@ -1053,6 +1065,17 @@ require('lazy').setup({ -- refer to the configuration section below }, }, + { + 'stevearc/oil.nvim', + opts = {}, + -- Optional dependencies + dependencies = { 'nvim-tree/nvim-web-devicons' }, + config = function() -- this is the function that runs, after loading + require('oil').setup() + + vim.keymap.set('n', '-', 'Oil', { desc = 'Open parent directory' }) + end, + }, -- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the -- init.lua. If you want these files, they are in the repository, so you can just download them and