diff --git a/init.lua b/init.lua index d9ec42c8..c72bf2e5 100644 --- a/init.lua +++ b/init.lua @@ -869,7 +869,9 @@ require('lazy').setup({ -- Or use telescope! -- In normal mode type `sh` then write `lazy.nvim-plugin` -- you can continue same window with `sr` which resumes last telescope search -}, { +}, +{ +lockfile = vim.fn.stdpath("data") .. "/lazy-lock.json", ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the -- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table diff --git a/lua/custom/plugins/data-preview.lua b/lua/custom/plugins/data-preview.lua new file mode 100644 index 00000000..506a6467 --- /dev/null +++ b/lua/custom/plugins/data-preview.lua @@ -0,0 +1,15 @@ +return { + 'vinvolve/data-preview.nvim', + cmd = { 'DataPreview', 'DataPreviewStats' }, + config = function() + local data_preview = require 'data-preview' + vim.api.nvim_create_user_command('DataPreview', data_preview.preview, { + nargs = 0, + desc = 'Preview data file (Parquet, Avro)', + }) + vim.api.nvim_create_user_command('DataPreviewStats', data_preview.preview_stats, { + nargs = 0, + desc = 'Preview data file statistics (min, max, nulls, etc.)', + }) + end, +}