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:
parent
4eb19130a9
commit
af6d7d8b4e
|
@ -1 +1,3 @@
|
|||
require 'opdavies'.init()
|
||||
require "opdavies.vim"
|
||||
|
||||
require "opdavies.packer"
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
local function init()
|
||||
require 'opdavies.vim'.init()
|
||||
require 'opdavies.packer'.init()
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue