snacks explorer config
This commit is contained in:
parent
2bd373853b
commit
5173d9787f
2 changed files with 12 additions and 15 deletions
|
@ -9,20 +9,6 @@ map('n', '<leader>w', '<Cmd>bd<CR>', opts)
|
|||
map('n', '<leader>s', '<Cmd>w<CR>', opts)
|
||||
map('n', '<leader>S', '<Cmd>w!<CR>', opts)
|
||||
map('n', '<Enter>', 'za<CR>', opts)
|
||||
-- map('n', '`', '<Cmd>Neotree toggle<CR>', opts)
|
||||
-- map('n', '~', '<Cmd>SymbolsToggle<CR>', opts)
|
||||
-- map('n', '<leader>e', '<Cmd>Neotree toggle<CR>', opts)
|
||||
-- map('n', '<leader>ff', "<Cmd>Telescope live_grep<CR>", opts)
|
||||
-- map('n', '<leader>fq', "<Cmd>Telescope quickfix<CR>", opts)
|
||||
-- map('n', '<leader>fr', "<Cmd>Telescope registers<CR>", opts)
|
||||
-- map('n', '<leader>f/', "<Cmd>Telescope current_buffer_fuzzy_find<CR>", opts)
|
||||
-- map('n', '<leader>flr', "<Cmd>Telescope lsp_references<CR>", opts)
|
||||
-- map('n', '<leader>fls', "<Cmd>Telescope treesitter<CR>", opts)
|
||||
-- map('n', '<leader>fld', "<Cmd>Telescope diagnostics<CR>", opts)
|
||||
-- map('n', '<leader>fgs', "<Cmd>Telescope git_status<CR>", opts)
|
||||
-- map('n', '<leader>fgb', "<Cmd>Telescope git_branches<CR>", opts)
|
||||
-- map('n', '<leader>fgc', "<Cmd>Telescope git_commits<CR>", opts)
|
||||
-- map('n', '<leader>fgC', "<Cmd>Telescope git_bcommits<CR>", opts)
|
||||
map('n', '<leader>t', "<Cmd>Switch<CR>", opts)
|
||||
map('n', '<leader>r', "<Cmd>Spectre<CR>", opts)
|
||||
map('n', '<Up>', "<C-a>", opts)
|
||||
|
|
|
@ -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" },
|
||||
|
|
Loading…
Add table
Reference in a new issue