55 lines
1.2 KiB
Lua
55 lines
1.2 KiB
Lua
return {
|
|
'folke/snacks.nvim',
|
|
priority = 1000,
|
|
lazy = false,
|
|
---@type snacks.Config
|
|
opts = {
|
|
-- your configuration comes here
|
|
-- or leave it empty to use the default settings
|
|
-- refer to the configuration section below
|
|
bigfile = { enabled = true },
|
|
dashboard = { enabled = true },
|
|
explorer = { enabled = true },
|
|
indent = { enabled = true },
|
|
input = { enabled = true },
|
|
picker = { enabled = true },
|
|
notifier = { enabled = true },
|
|
quickfile = { enabled = true },
|
|
scope = { enabled = true },
|
|
scroll = { enabled = true },
|
|
statuscolumn = { enabled = true },
|
|
words = { enabled = true },
|
|
},
|
|
keys = {
|
|
{
|
|
'gd',
|
|
function()
|
|
Snacks.picker.lsp_definitions()
|
|
end,
|
|
desc = 'Goto Definition',
|
|
},
|
|
{
|
|
'gD',
|
|
function()
|
|
Snacks.picker.lsp_declarations()
|
|
end,
|
|
desc = 'Goto Declaration',
|
|
},
|
|
{
|
|
'gr',
|
|
function()
|
|
Snacks.picker.lsp_references()
|
|
end,
|
|
nowait = true,
|
|
desc = 'References',
|
|
},
|
|
{
|
|
'gI',
|
|
function()
|
|
Snacks.picker.lsp_implementations()
|
|
end,
|
|
desc = 'Goto Implementation',
|
|
},
|
|
},
|
|
}
|