diff --git a/nvim/lua/config/keys.lua b/nvim/lua/config/keys.lua index 7b246f1..bd9c68c 100644 --- a/nvim/lua/config/keys.lua +++ b/nvim/lua/config/keys.lua @@ -9,20 +9,6 @@ map('n', 'w', 'bd', opts) map('n', 's', 'w', opts) map('n', 'S', 'w!', opts) map('n', '', 'za', opts) --- map('n', '`', 'Neotree toggle', opts) --- map('n', '~', 'SymbolsToggle', opts) --- map('n', 'e', 'Neotree toggle', opts) --- map('n', 'ff', "Telescope live_grep", opts) --- map('n', 'fq', "Telescope quickfix", opts) --- map('n', 'fr', "Telescope registers", opts) --- map('n', 'f/', "Telescope current_buffer_fuzzy_find", opts) --- map('n', 'flr', "Telescope lsp_references", opts) --- map('n', 'fls', "Telescope treesitter", opts) --- map('n', 'fld', "Telescope diagnostics", opts) --- map('n', 'fgs', "Telescope git_status", opts) --- map('n', 'fgb', "Telescope git_branches", opts) --- map('n', 'fgc', "Telescope git_commits", opts) --- map('n', 'fgC', "Telescope git_bcommits", opts) map('n', 't', "Switch", opts) map('n', 'r', "Spectre", opts) map('n', '', "", opts) diff --git a/nvim/lua/plugins/pickers.lua b/nvim/lua/plugins/pickers.lua index cb96f98..18ed22f 100644 --- a/nvim/lua/plugins/pickers.lua +++ b/nvim/lua/plugins/pickers.lua @@ -10,7 +10,18 @@ return { }, }, keys = { - { "`", function() Snacks.explorer() end, desc = "File Explorer" }, + { + "`", + function() + Snacks.explorer( + { + auto_close = true, + layout = { preset = "sidebar", preview = "main" }, + } + ) + end, + desc = "File Explorer" + }, { "~", function() Snacks.picker.lsp_symbols() end, desc = "LSP Symbols" }, { "gd", function() Snacks.picker.lsp_definitions() end, desc = "Goto Definition" },