From b0ff3024b3849b63fda3196ddc1fb33b682d79be Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Sun, 17 Sep 2023 09:58:53 +0200 Subject: [PATCH] refactor(nvim): extract lua func --- nvimrc | 18 ++++++------------ vim/lua/helpers.lua | 12 ++++++++++++ vim/lua/main.lua | 1 + 3 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 vim/lua/helpers.lua create mode 100644 vim/lua/main.lua diff --git a/nvimrc b/nvimrc index 649c1b9..4804e75 100644 --- a/nvimrc +++ b/nvimrc @@ -1,5 +1,6 @@ " Prefer $HOME/.vim to $HOME/.config/nvim (for now): -set runtimepath^=~/.vim runtimepath+=~/.vim/after +" TODO: refactor file structure for nvim +set runtimepath^=~/.vim runtimepath+=~/.vim/after runtimepath+=~/.vim/lua let &packpath = &runtimepath set background=dark @@ -145,6 +146,9 @@ nnoremap dq ggVG"_d:wq iabbrev esdebug debugger; // eslint-disable-line no-debugger iabbrev bashstrict set -euo pipefailIFS=$'\n\t' +" lua includes +lua require("main") + lua <