From 877eedba21220cf7bba346c32146251ac10a8e49 Mon Sep 17 00:00:00 2001 From: gmnz Date: Tue, 6 Jun 2023 08:01:42 +0200 Subject: [PATCH] Override or set new options, autocmds, etc. in lua files placed in lua/custom/ --- init.lua | 4 ++++ lua/custom/example_override.lua | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 lua/custom/example_override.lua diff --git a/init.lua b/init.lua index ca2da6e1..4b2d906e 100644 --- a/init.lua +++ b/init.lua @@ -511,5 +511,9 @@ cmp.setup { }, } +-- Override or set new options, autocmds, etc. in lua files placed in lua/custom/ +-- See lua/custom/example_override.lua +vim.cmd('runtime! lua/custom/*.lua') + -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et diff --git a/lua/custom/example_override.lua b/lua/custom/example_override.lua new file mode 100644 index 00000000..a644bc0e --- /dev/null +++ b/lua/custom/example_override.lua @@ -0,0 +1,2 @@ +-- Override hlsearch option value from init.lua +-- vim.o.hlsearch = true