refactor(nvim): organise options.lua

This commit is contained in:
Oliver Davies 2021-12-24 21:00:00 +00:00
parent 1fe7305397
commit 4bede5a014
2 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,7 @@ require("opdavies.floaterm")
require("opdavies.gitsigns")
require("opdavies.indent-blankline")
require("opdavies.lsp")
require("opdavies.options")
require("opdavies.options").setup()
require("opdavies.plugins")
require("opdavies.seiya")
require("opdavies.telescope")

View file

@ -1,3 +1,5 @@
local M = {}
local function set_autocmd()
vim.cmd[[
autocmd BufRead,BufNewFile *.test set filetype=php
@ -100,7 +102,7 @@ local function set_vim_o()
vim.opt.clipboard:append 'unnamedplus'
end
local function init()
M.setup = function()
set_vim_g()
set_vim_o()
set_key_mappings()
@ -109,4 +111,4 @@ local function init()
set_highlights()
end
init()
return M