A Simple Plugin for calling lazysql from within neovim. In the same vein crnvl96/lazydocker.nvim and kdheepak/lazygit.nvim
But if like "Do One Thing and Do It Well" just continue on.
You will need lazysql installed on your system for this plugin to work.
-- Packer
use({
"LostbBlizzard/lazysql.nvim",
config = function()
require("lazysql").setup()
end,
requires = {
"MunifTanjim/nui.nvim",
}
})
-- Lazy
{
"LostbBlizzard/lazysql.nvim",
opts = {}, -- automatically calls `require("lazysql").setup()`
dependencies = {
"MunifTanjim/nui.nvim",
}
}
just use the command LazySql
to toggle the floating panel
or set a keybind
vim.keymap.set("n", "<leader>ls", "<cmd>LazySql<CR>", { desc = "Toggle LazySql", noremap = true, silent = true })