refactor(nvim): simplify lazy loading configuration
This commit is contained in:
1 parent
c5133f1a4d
commit
16efb1c9e5
2 files changed
+1
-73
No files matched your search
@@ -6,6 +6,7 @@
|
|||||||
return {
|
return {
|
||||||
"AstroNvim/astrocommunity",
|
"AstroNvim/astrocommunity",
|
||||||
version = false, -- Use latest astrocommunity
|
version = false, -- Use latest astrocommunity
|
||||||
|
{ import = "astrocommunity.ai.oopencode-nvim" },
|
||||||
{ import = "astrocommunity.pack.astro" },
|
{ import = "astrocommunity.pack.astro" },
|
||||||
{ import = "astrocommunity.pack.bash" },
|
{ import = "astrocommunity.pack.bash" },
|
||||||
{ import = "astrocommunity.pack.biome" },
|
{ import = "astrocommunity.pack.biome" },
|
||||||
|
|||||||
@@ -1,73 +0,0 @@
|
|||||||
return {
|
|
||||||
"folke/sidekick.nvim",
|
|
||||||
opts = {
|
|
||||||
-- add any options here
|
|
||||||
cli = {
|
|
||||||
mux = {
|
|
||||||
backend = "zellij",
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- stylua: ignore
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<tab>",
|
|
||||||
function()
|
|
||||||
-- if there is a next edit, jump to it, otherwise apply it if any
|
|
||||||
if not require("sidekick").nes_jump_or_apply() then
|
|
||||||
return "<Tab>" -- fallback to normal tab
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
expr = true,
|
|
||||||
desc = "Goto/Apply Next Edit Suggestion",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<c-.>",
|
|
||||||
function() require("sidekick.cli").toggle() end,
|
|
||||||
desc = "Sidekick Toggle",
|
|
||||||
mode = { "n", "t", "i", "x" },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>aa",
|
|
||||||
function() require("sidekick.cli").toggle() end,
|
|
||||||
desc = "Sidekick Toggle CLI",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>as",
|
|
||||||
function() require("sidekick.cli").select() end,
|
|
||||||
-- Or to select only installed tools:
|
|
||||||
-- require("sidekick.cli").select({ filter = { installed = true } })
|
|
||||||
desc = "Select CLI",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>at",
|
|
||||||
function() require("sidekick.cli").send({ msg = "{this}" }) end,
|
|
||||||
mode = { "x", "n" },
|
|
||||||
desc = "Send This",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>af",
|
|
||||||
function() require("sidekick.cli").send({ msg = "{file}" }) end,
|
|
||||||
desc = "Send File",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>av",
|
|
||||||
function() require("sidekick.cli").send({ msg = "{selection}" }) end,
|
|
||||||
mode = { "x" },
|
|
||||||
desc = "Send Visual Selection",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>ap",
|
|
||||||
function() require("sidekick.cli").prompt() end,
|
|
||||||
mode = { "n", "x" },
|
|
||||||
desc = "Sidekick Select Prompt",
|
|
||||||
},
|
|
||||||
-- Example of a keybinding to open Claude directly
|
|
||||||
{
|
|
||||||
"<leader>ac",
|
|
||||||
function() require("sidekick.cli").toggle({ name = "claude", focus = true }) end,
|
|
||||||
desc = "Sidekick Toggle Claude",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user