-
Couldn't load subscription status.
- Fork 0
Migration Guide
- Since v0.1.0
Historically, SqlFlick is new name. The previous name was 'SqlSnap'. I liked that name(word 'snap' is originated from snap the finger, which indicate just signal that command, query run), but
- Some other project already there with same name
- The word snap is confusing, because of it's domain (db, that reminds 'snapshot')
So the project name, module name was changed with other names, which has meaning 'a sudden sharp movement', that follow the line of quick movement (light-weight), of our project.
Because of this change, it would break of your experience after update, not matched module name / configuration.
Follow this steps. If it is not sufficient, plz let me know! 🙏
- OLD ONE
{
"nolleh/sqlsnap.nvim",
config = function()
require("sqlsnap").setup({
})
end,
-- recommended load plugin option
cmd = { "SQLSnapSelectDB", "SQLSnapExecute", "SQLSnapExecuteBuf", "SQLSnapInstall", "SQLSnapRestart" },
ft = { "sql" },
}- NEW ONE
{
"nolleh/sqlflick.nvim",
config = function()
require("sqlflick").setup({
-- Configuration options (see below)
})
end,
-- recommended load plugin option
cmd = { "SQLFlickSelectDB", "SQLFlickExecute", "SQLFlickExecuteBuf", "SQLFlickInstall", "SQLFlickRestart" },
ft = { "sql" },
}It is possible you are declared your own mapping, to fit your finger. If so, you need to modify the mapping to link proper command.
- OLD ONE
vim.keymap.set("n", "<leader>s",
":SQLSnapSelectDB<CR>", { silent = true, desc = "Select DB from configuration" })- NEW ONE
vim.keymap.set("n", "<leader>s",
":SQLFlickSelectDB<CR>", { silent = true, desc = "Select DB from configuration" })- Since v0.1.3
Configuation's preview section is not sufficiently convey it's meaning of selector preview
So renamed of the configuration section name.
- OLD ONE
require("sqlflick").setup({
enabled = true,
databases = {
-- Your Other Config..
},
preview = {
width = 60,
height = 15,
border = "rounded",
},
})
end,
- NEW ONE
require("sqlflick").setup({
enabled = true,
databases = {
-- Your Other Config..
},
selector = {
width = 60,
height = 15,
border = "rounded",
},
})
end,