feat: Improved previewers and cleanup

This commit is contained in:
TJ DeVries
2020-09-17 12:34:42 -04:00
parent 7bdb39b138
commit a9d9b3d8bf
5 changed files with 192 additions and 185 deletions

View File

@@ -294,6 +294,8 @@ builtin.lsp_workspace_symbols = function(opts)
end
builtin.quickfix = function(opts)
opts = opts or {}
local locations = vim.fn.getqflist()
if vim.tbl_isempty(locations) then
@@ -603,6 +605,8 @@ builtin.planets = function(opts)
print("Enjoy astronomy! You viewed:", selection.display)
end)
return true
end,
}:find()
end