Cleanup
This commit is contained in:
parent
d0eeef18a5
commit
4285368c21
12
plugins.vim
12
plugins.vim
@ -100,18 +100,6 @@ lua << EOF
|
||||
|
||||
-- Set completeopt to have a better completion experience
|
||||
vim.o.completeopt = 'menuone,noselect'
|
||||
|
||||
-- Helper for dumping Lua tables
|
||||
function _G.put(...)
|
||||
local objects = {}
|
||||
for i = 1, select('#', ...) do
|
||||
local v = select(i, ...)
|
||||
table.insert(objects, vim.inspect(v))
|
||||
end
|
||||
|
||||
print(table.concat(objects, '\n'))
|
||||
return ...
|
||||
end
|
||||
EOF
|
||||
endif
|
||||
|
||||
|
23
util.vim
23
util.vim
@ -25,3 +25,26 @@ function! s:guid()
|
||||
endfunction
|
||||
|
||||
command! Guid call s:guid()
|
||||
|
||||
if has('nvim')
|
||||
lua << EOF
|
||||
|
||||
function _G.put(...)
|
||||
local objects = {}
|
||||
for i = 1, select('#', ...) do
|
||||
local v = select(i, ...)
|
||||
table.insert(objects, vim.inspect(v))
|
||||
end
|
||||
|
||||
print(table.concat(objects, '\n'))
|
||||
return ...
|
||||
end
|
||||
|
||||
function _G.list_packages()
|
||||
for key, value in pairs(package.loaded) do
|
||||
print(key)
|
||||
end
|
||||
end
|
||||
|
||||
EOF
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user