snacks tweaks

This commit is contained in:
iofq 2025-02-04 02:03:02 -06:00
parent bb2a34d620
commit e7eb63b09b
4 changed files with 17 additions and 6 deletions

View file

@ -2,7 +2,6 @@ return {
{ {
"zbirenbaum/copilot.lua", "zbirenbaum/copilot.lua",
cmd = "Copilot", cmd = "Copilot",
event = "InsertEnter",
opts = { opts = {
panel = { enabled = false }, panel = { enabled = false },
suggestion = { suggestion = {
@ -45,12 +44,11 @@ return {
}, },
{ {
"yetone/avante.nvim", "yetone/avante.nvim",
event = "VeryLazy", cmd = "Copilot",
dependencies = { dependencies = {
"stevearc/dressing.nvim", "stevearc/dressing.nvim",
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
"folke/snacks.nvim",
"zbirenbaum/copilot.lua", "zbirenbaum/copilot.lua",
{ {
'MeanderingProgrammer/render-markdown.nvim', 'MeanderingProgrammer/render-markdown.nvim',
@ -68,6 +66,12 @@ return {
}, },
file_selector = { file_selector = {
provider = "native", -- TODO snacks once it's ready provider = "native", -- TODO snacks once it's ready
},
windows = {
width = 50,
ask = {
floating = true
}
} }
} }
} }

View file

@ -3,7 +3,7 @@ return {
'saghen/blink.cmp', 'saghen/blink.cmp',
event = "VeryLazy", event = "VeryLazy",
dependencies = { dependencies = {
"yetone/avante.nvim", { "yetone/avante.nvim", lazy = true },
'saghen/blink.compat', 'saghen/blink.compat',
'rafamadriz/friendly-snippets', 'rafamadriz/friendly-snippets',
'giuxtaposition/blink-cmp-copilot', 'giuxtaposition/blink-cmp-copilot',

View file

@ -12,7 +12,7 @@ return {
{ {
'jinh0/eyeliner.nvim', 'jinh0/eyeliner.nvim',
event = 'VeryLazy', event = 'VeryLazy',
config = function() init = function()
vim.api.nvim_set_hl(0, 'EyelinerPrimary', { underline = true }) vim.api.nvim_set_hl(0, 'EyelinerPrimary', { underline = true })
vim.api.nvim_set_hl(0, 'EyelinerSecondary', { underline = true }) vim.api.nvim_set_hl(0, 'EyelinerSecondary', { underline = true })
end, end,
@ -76,7 +76,7 @@ return {
opts = { opts = {
options = { options = {
transparent = true, transparent = true,
terminal_colors = false, terminal_colors = true,
modules = { modules = {
"mini", "mini",
"treesitter", "treesitter",

View file

@ -20,6 +20,13 @@ return {
return vim.o.columns >= 120 and "telescope" or "vertical" return vim.o.columns >= 120 and "telescope" or "vertical"
end end
}, },
picker = {
sources = {
files = { hidden = true },
grep = { hidden = true },
explorer = { hidden = true },
},
},
actions = { actions = {
trouble_open = function(...) trouble_open = function(...)
return require("trouble.sources.snacks").actions.trouble_open.action(...) return require("trouble.sources.snacks").actions.trouble_open.action(...)