chore(nvim): add lua globals
This commit is contained in:
parent
572557ed28
commit
72d42651fe
|
@ -1,3 +1,4 @@
|
||||||
|
require "opdavies.globals"
|
||||||
require "opdavies.lsp"
|
require "opdavies.lsp"
|
||||||
require("opdavies.options").setup()
|
require("opdavies.options").setup()
|
||||||
require "opdavies.plugins"
|
require "opdavies.plugins"
|
||||||
|
|
13
roles/neovim/files/lua/opdavies/globals.lua
Normal file
13
roles/neovim/files/lua/opdavies/globals.lua
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
P = function(v)
|
||||||
|
print(vim.inspect(v))
|
||||||
|
return v
|
||||||
|
end
|
||||||
|
|
||||||
|
RELOAD = function(...)
|
||||||
|
return require("plenary.reload").reload_module(...)
|
||||||
|
end
|
||||||
|
|
||||||
|
R = function(name)
|
||||||
|
RELOAD(name)
|
||||||
|
return require(name)
|
||||||
|
end
|
Loading…
Reference in a new issue