From 67a4bc03ac81be48911de51337e1065cfe96425b Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 24 Apr 2025 20:34:48 +0300 Subject: Replaced telescope and trouble with snacks picker --- .config/nvim/lua/plugins/snacks.lua | 116 +++++++++++++++++++++++++++++++++++- 1 file changed, 114 insertions(+), 2 deletions(-) (limited to '.config/nvim/lua/plugins/snacks.lua') diff --git a/.config/nvim/lua/plugins/snacks.lua b/.config/nvim/lua/plugins/snacks.lua index 5e00a23..02c5e35 100644 --- a/.config/nvim/lua/plugins/snacks.lua +++ b/.config/nvim/lua/plugins/snacks.lua @@ -23,6 +23,7 @@ return { return true end, }, + picker = {}, }, keys = { { @@ -45,11 +46,11 @@ return { }, { - 'si', + 'ri', function() Snacks.image.hover() end, - desc = '[S]how [I]mage', + desc = '[R]ender [I]mage', }, { @@ -66,5 +67,116 @@ return { end, desc = '[N]otification [H]istory', }, + + { + 'sp', + function() + Snacks.picker.pickers({ layout = 'telescope' }) + end, + desc = '[S]how [P]ickers', + }, + { + 'fs', + function() + Snacks.picker.files({ + layout = 'telescope', + hidden = true, + follow = true, + }) + end, + desc = '[F]ile [S]ystem', + }, + { + 'lv', + function() + Snacks.picker.grep({ + layout = 'telescope', + hidden = true, + follow = true, + }) + end, + desc = '[L]ive [G]rep', + }, + { + 'gi', + function() + Snacks.picker.lsp_implementations() + end, + { desc = '[G]oto [I]mplementations' }, + }, + { + 'gt', + function() + Snacks.picker.lsp_type_definitions() + end, + { desc = '[G]oto [T]ype Definitions' }, + }, + { + 'ds', + function() + Snacks.picker.lsp_symbols({ layout = 'telescope' }) + end, + desc = '[D]ocument [S]ymbols', + }, + { + 'ps', + function() + Snacks.picker.lsp_workspace_symbols({ layout = 'telescope' }) + end, + desc = '[P]roject [S]ymbols', + }, + { + 'di', + function() + Snacks.picker.diagnostics({ layout = 'telescope' }) + end, + desc = '[Di]agnostics', + }, + { + 'dl', + function() + Snacks.picker.diagnostics_buffer({ layout = 'telescope' }) + end, + desc = '[D]iagnostics [L]ocal', + }, + { + 'fh', + function() + Snacks.picker.help({ layout = 'telescope' }) + end, + desc = '[F]ind [H]elp', + }, + { + 'hi', + function() + Snacks.picker.highlights({ + layout = 'telescope', + hidden = true, + follow = true, + }) + end, + desc = '[Hi]light Groups', + }, + { + 'si', + function() + Snacks.picker.icons({ layout = 'select' }) + end, + desc = '[S]earch [I]cons', + }, + { + 'sk', + function() + Snacks.picker.keymaps({ layout = 'dropdown' }) + end, + desc = '[S]earch [K]eymaps', + }, + { + 'th', + function() + Snacks.picker.colorschemes({ layout = 'dropdown' }) + end, + desc = '[T]hemes [P]icker', + }, }, } -- cgit v1.3.1