refactor(nvim): finish restructuring lua files

This completes what I started in commit
0786ed3b3d, refactoring the lua code by
restructuring the directories and removing the `init` functions at the
bottom of each file.
This commit is contained in:
Oliver Davies 2021-11-17 18:46:51 +00:00
parent 4eb19130a9
commit af6d7d8b4e
4 changed files with 65 additions and 83 deletions

View file

@ -1 +1,3 @@
require 'opdavies'.init()
require "opdavies.vim"
require "opdavies.packer"

View file

@ -1,8 +0,0 @@
local function init()
require 'opdavies.vim'.init()
require 'opdavies.packer'.init()
end
return {
init = init
}

View file

@ -1,4 +1,3 @@
local function packer_startup()
require('packer').startup(function()
use 'wbthomason/packer.nvim'
@ -67,12 +66,3 @@ local function packer_startup()
use 'vimwiki/vimwiki'
end)
end
local function init()
packer_startup()
end
return {
init = init
}

View file

@ -94,14 +94,12 @@ local function set_vim_o()
end
local function init()
set_vim_g()
set_vim_o()
set_key_mappings()
set_autocmd()
set_filetypes()
set_highlights()
set_key_mappings()
set_vim_g()
set_vim_o()
end
return {
init = init
}
init()