You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
315 B
19 lines
315 B
-- Usage: |
|
-- :lua P("Hello World!") |
|
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 |
|
|
|
LOG = function(v) |
|
vim.fn.writefile({ vim.inspect(v) }, "/tmp/nvim-log", "a") |
|
end
|
|
|