mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 00:45:17 -06:00
use trouble qf from snacks
This commit is contained in:
parent
012306d04f
commit
01366c625a
5 changed files with 13 additions and 17 deletions
|
|
@ -46,7 +46,6 @@ return {
|
|||
{
|
||||
"yetone/avante.nvim",
|
||||
event = "VeryLazy",
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
"stevearc/dressing.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
return {
|
||||
{
|
||||
'saghen/blink.cmp',
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"yetone/avante.nvim",
|
||||
'saghen/blink.compat',
|
||||
|
|
@ -35,7 +36,6 @@ return {
|
|||
"ripgrep",
|
||||
"avante_commands",
|
||||
"avante_mentions",
|
||||
"avante_files"
|
||||
},
|
||||
providers = {
|
||||
ripgrep = {
|
||||
|
|
@ -49,12 +49,6 @@ return {
|
|||
score_offset = 90,
|
||||
opts = {},
|
||||
},
|
||||
avante_files = {
|
||||
name = "avante_files",
|
||||
module = "blink.compat.source",
|
||||
score_offset = 100,
|
||||
opts = {},
|
||||
},
|
||||
avante_mentions = {
|
||||
name = "avante_mentions",
|
||||
module = "blink.compat.source",
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ return {
|
|||
lspconfig.jedi_language_server.setup { capabilities = capabilities }
|
||||
lspconfig.nil_ls.setup { capabilities = capabilities }
|
||||
lspconfig.phpactor.setup { capabilities = capabilities }
|
||||
lspconfig.ruby_ls.setup { capabilities = capabilities }
|
||||
lspconfig.ruby_lsp.setup { capabilities = capabilities }
|
||||
lspconfig.lua_ls.setup {
|
||||
capabilities = capabilities,
|
||||
on_init = function(client)
|
||||
|
|
@ -101,12 +101,6 @@ return {
|
|||
vim.lsp.buf.code_action,
|
||||
{ buffer = ev.buf, noremap = true, silent = true, desc = 'LSP code action' }
|
||||
)
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
'<leader>dd',
|
||||
function() Snacks.picker.diagnostics() end,
|
||||
{ buffer = ev.buf, noremap = true, silent = true, desc = 'LSP diagnostics' }
|
||||
)
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
'<leader>df',
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ return {
|
|||
require('mini.align').setup()
|
||||
require('mini.bracketed').setup()
|
||||
require('mini.icons').setup()
|
||||
require('mini.jump2d').setup({ mappings = { start_jumping = '<leader>S' } });
|
||||
require('mini.surround').setup()
|
||||
require('mini.splitjoin').setup { detect = { separator = '[,;\n]' }, }
|
||||
require('mini.trailspace').setup()
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
return {
|
||||
{
|
||||
"folke/snacks.nvim",
|
||||
priority = 1000,
|
||||
dependencies = { "folke/trouble.nvim" },
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
opts = {
|
||||
bigfile = { enabled = true },
|
||||
notifier = { enabled = true },
|
||||
|
|
@ -19,10 +20,17 @@ return {
|
|||
return vim.o.columns >= 120 and "telescope" or "vertical"
|
||||
end
|
||||
},
|
||||
actions = {
|
||||
trouble_open = function(...)
|
||||
return require("trouble.sources.snacks").actions.trouble_open.action(...)
|
||||
end,
|
||||
},
|
||||
win = {
|
||||
input = {
|
||||
keys = {
|
||||
["wq"] = { "close", mode = "i" },
|
||||
["<c-t>"] = { "trouble_open", mode = { "n", "i" },
|
||||
},
|
||||
}
|
||||
},
|
||||
list = {
|
||||
|
|
@ -44,7 +52,7 @@ return {
|
|||
{
|
||||
'<leader>ff',
|
||||
function() Snacks.picker.smart() end,
|
||||
{ noremap = true, silent = true, desc = 'Fuzzy find git files' }
|
||||
{ noremap = true, silent = true, desc = 'Fuzzy find files' }
|
||||
},
|
||||
{
|
||||
'<leader>fa',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue