Switch to snacks to fix copilot issues

This commit is contained in:
2025-06-04 17:27:21 +02:00
parent b16bf4e764
commit 57dceadca5
6 changed files with 58 additions and 33 deletions
+1 -1
View File
@@ -15,4 +15,4 @@
],
"skipLibCheck": true
}
}
}
+3
View File
@@ -12,5 +12,8 @@ require("catppuccin").setup({
navic = true,
leap = true,
noice = true,
snacks = {
enabled = true,
},
},
})
+4 -3
View File
@@ -97,15 +97,16 @@ in
noice-nvim
statuscol-nvim
dressing-nvim
telescope-ui-select-nvim
(snacks-nvim.overrideAttrs {
postPatch = "rm -rf queries";
})
mini-icons
which-key-nvim
quicker-nvim
lualine-nvim
nvim-navic
virt-column-nvim
indent-blankline-nvim
zen-mode-nvim
CopilotChat-nvim
# enable this just to signin (used by the chat plugin above)
+3 -5
View File
@@ -10,10 +10,12 @@ return {
}
},
opts = {
model = "gemini-2.5-pro",
chat_autocomplete = false,
auto_insert_mode = true,
mappings = {
complete = {
insert = "<C-space>",
insert = "<Tab>",
},
close = {
normal = "q",
@@ -22,10 +24,6 @@ return {
}
},
after = function(plug)
local select = require("CopilotChat.select")
plug.opts.selection = function(source)
return select.visual(source) or select.buffer(source)
end
require("CopilotChat").setup(plug.opts)
end,
},
+1
View File
@@ -136,6 +136,7 @@ return {
telescope.load_extension("fzf")
telescope.load_extension("ripgrep")
telescope.load_extension("git_show")
telescope.load_extension("ui-select")
end
},
}
+46 -24
View File
@@ -61,37 +61,59 @@ return {
},
{
"indent-blankline.nvim",
event = { "BufReadPost", "BufWritePost", "BufNewFile" },
"snacks-nvim",
event = "DeferredUIEnter",
opts = {
input = {
enabled = true,
},
indent = {
char = "▏",
tab_char = "▏",
enabled = true,
indent = {
char = "▏",
},
animate = {
enabled = false,
},
scope = {
char = "▏",
},
chunk = {
char = {
vertical = "▏",
},
},
},
exclude = {
filetypes = {
"help",
"checkhealth",
"help",
"man",
"qf",
"",
}
zen = {
toggles = {
dim = false,
},
show = {
statusline = true,
},
},
styles = {
input = {
relative = "cursor",
row = -3,
col = 0,
keys = {
i_esc = { "<esc>", { "cmp_close", "cancel" }, mode = "i", expr = true },
},
},
zen = {
width = 200,
backdrop = {
transparent = false,
blend = 0,
},
},
},
scope = { show_start = false, show_end = false, },
},
after = function(plug)
require("ibl").setup(plug.opts)
end,
},
require("snacks").setup(plug.opts)
{
"zen-mode.nvim",
keys = {
{ "<leader>zz", "<cmd>ZenMode<cr>", desc = "Toogle zen mode" },
},
after = function()
require("zen-mode").setup()
vim.keymap.set("n", "<leader>zz", function() require("snacks").zen() end, { desc = "Toggle zen mode" })
end,
},
}