up
This commit is contained in:
@@ -46,7 +46,7 @@ return {
|
||||
{ action = 'Telescope find_files', name = ' Rechercher fichier', section = 'Telescope' },
|
||||
{ action = 'Telescope oldfiles', name = ' Fichiers récents', section = 'Telescope' },
|
||||
{ action = 'Telescope live_grep', name = ' Rechercher texte', section = 'Telescope' },
|
||||
{ action = 'e .', name = ' Parcourir', section = 'Fichiers' },
|
||||
{ action = 'e .', name = ' Ouvrir', section = 'Fichiers' },
|
||||
{ action = 'qa', name = ' Quitter', section = 'Quitter' },
|
||||
},
|
||||
content_hooks = {
|
||||
|
||||
@@ -33,7 +33,7 @@ return {
|
||||
'close_window',
|
||||
desc = 'close neo-tree',
|
||||
},
|
||||
['T'] = {
|
||||
['d'] = {
|
||||
'trash',
|
||||
desc = 'trash file',
|
||||
},
|
||||
@@ -44,6 +44,7 @@ return {
|
||||
trash_visual = neotree_helper.trash_visual,
|
||||
},
|
||||
},
|
||||
-- recommanded config for VSCode like file nesting
|
||||
default_component_configs = {
|
||||
indent = {
|
||||
with_expanders = true,
|
||||
@@ -51,7 +52,19 @@ return {
|
||||
expander_expanded = '',
|
||||
},
|
||||
},
|
||||
event_handlers = {
|
||||
{
|
||||
event = 'file_opened',
|
||||
handler = function()
|
||||
-- auto close
|
||||
-- vim.cmd 'Neotree close'
|
||||
-- or
|
||||
require('neo-tree.command').execute { action = 'close' }
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
-- recommanded config for VSCode like file nesting
|
||||
config = function(_, opts)
|
||||
-- Adding rules from plugin
|
||||
opts.nesting_rules = require('neotree-file-nesting-config').nesting_rules
|
||||
|
||||
Reference in New Issue
Block a user