update filemanager config

update to align with config option changes
This commit is contained in:
saibotk 2022-04-18 03:42:13 +02:00
parent 42593f71e5
commit 1ccc59c43a
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 16 additions and 10 deletions

View file

@ -23,11 +23,10 @@ vim.g.nvim_tree_icons = {
-- extra options -- extra options
vim.g.nvim_tree_indent_markers = 1
vim.g.nvim_tree_add_trailing=1 vim.g.nvim_tree_add_trailing=1
vim.g.nvim_tree_special_files= { vim.g.nvim_tree_special_files= {
['README.md'] = true, ["README.md"] = true,
['readme.md'] = true, ["readme.md"] = true,
Pipfile = true, Pipfile = true,
Makefile = true, Makefile = true,
['package.json'] = true, ['package.json'] = true,
@ -49,8 +48,15 @@ vim.cmd [[hi NvimTreeOpenedFolderName guifg=#D1D5DB ]]
vim.cmd [[hi NvimTreeEmptyFolderName guifg=#D1D5DB ]] vim.cmd [[hi NvimTreeEmptyFolderName guifg=#D1D5DB ]]
-- setup -- setup
require'nvim-tree'.setup { local nvimtree = require'nvim-tree'
nvimtree.setup {
update_cwd = true, update_cwd = true,
renderer = {
indent_markers = {
enable = true,
},
},
update_to_buf_dir = { update_to_buf_dir = {
enable = true, enable = true,
auto_open = true, auto_open = true,
@ -78,3 +84,6 @@ require'nvim-tree'.setup {
} }
vim.cmd("autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif") vim.cmd("autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif")
-- KEYMAPS
vim.keymap.set('n', '<leader>e', nvimtree.toggle)

View file

@ -18,9 +18,6 @@ vim.keymap.set('i', '[,', '[<CR>],<C-c>O')
-- toggle hybrid mode -- toggle hybrid mode
vim.keymap.set('n', '<leader>h', ':set rnu!<CR>') vim.keymap.set('n', '<leader>h', ':set rnu!<CR>')
-- nvim-tree.lua
vim.keymap.set('n', '<leader>e', ':NvimTreeToggle<CR>')
-- Telescope -- Telescope
vim.keymap.set('n', '<C-y>', '<cmd>Telescope buffers<CR>') vim.keymap.set('n', '<C-y>', '<cmd>Telescope buffers<CR>')
vim.keymap.set('n', '<leader>f', '<cmd>Telescope find_files<CR>') vim.keymap.set('n', '<leader>f', '<cmd>Telescope find_files<CR>')