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,5 +1,4 @@
local function packer_startup() require('packer').startup(function()
require('packer').startup(function()
use 'wbthomason/packer.nvim' use 'wbthomason/packer.nvim'
-- Utilities -- Utilities
@ -66,13 +65,4 @@ local function packer_startup()
use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' } use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }
use 'vimwiki/vimwiki' use 'vimwiki/vimwiki'
end) end)
end
local function init()
packer_startup()
end
return {
init = init
}

View file

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