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