From 8a7c2e99d7ab3ac8c8f12be76e1a831790d413fc Mon Sep 17 00:00:00 2001 From: amtoine Date: Sat, 1 Apr 2023 12:26:44 +0200 Subject: [PATCH] add NOTEs on the `pcall`s to give the user hints --- init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.lua b/init.lua index e8d69fe2..1c213ca2 100644 --- a/init.lua +++ b/init.lua @@ -230,6 +230,9 @@ vim.o.completeopt = 'menuone,noselect' -- NOTE: You should make sure your terminal supports this vim.o.termguicolors = true +-- NOTE: you can add any custom options in the `lua/custom/options.lua` +-- file to avoid any conflict with this file if you're interested in keeping +-- up-to-date with whatever is in the kickstart repo. pcall(require, 'custom/options') -- [[ Basic Keymaps ]] @@ -242,6 +245,9 @@ vim.keymap.set({ 'n', 'v' }, '', '', { silent = true }) vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true }) vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true }) +-- NOTE: you can add any custom keybinding in the `lua/custom/keybindings.lua` +-- file to avoid any conflict with this file if you're interested in keeping +-- up-to-date with whatever is in the kickstart repo. pcall(require, 'custom/keybindings') -- [[ Highlight on yank ]] @@ -500,4 +506,7 @@ cmp.setup { -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et +-- NOTE: you can add any custom `vim` command in the `lua/custom/commands.lua` +-- file to avoid any conflict with this file if you're interested in keeping +-- up-to-date with whatever is in the kickstart repo. pcall(require, 'custom/commands')