update filemanager config
update to align with config option changes
This commit is contained in:
parent
42593f71e5
commit
1ccc59c43a
2 changed files with 16 additions and 10 deletions
|
@ -23,11 +23,10 @@ vim.g.nvim_tree_icons = {
|
|||
|
||||
|
||||
-- extra options
|
||||
vim.g.nvim_tree_indent_markers = 1
|
||||
vim.g.nvim_tree_add_trailing = 1
|
||||
vim.g.nvim_tree_special_files = {
|
||||
['README.md'] = true,
|
||||
['readme.md'] = true,
|
||||
vim.g.nvim_tree_add_trailing=1
|
||||
vim.g.nvim_tree_special_files= {
|
||||
["README.md"] = true,
|
||||
["readme.md"] = true,
|
||||
Pipfile = true,
|
||||
Makefile = true,
|
||||
['package.json'] = true,
|
||||
|
@ -49,8 +48,15 @@ vim.cmd [[hi NvimTreeOpenedFolderName guifg=#D1D5DB ]]
|
|||
vim.cmd [[hi NvimTreeEmptyFolderName guifg=#D1D5DB ]]
|
||||
|
||||
-- setup
|
||||
require'nvim-tree'.setup {
|
||||
update_cwd = true,
|
||||
local nvimtree = require'nvim-tree'
|
||||
|
||||
nvimtree.setup {
|
||||
update_cwd = true,
|
||||
renderer = {
|
||||
indent_markers = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
update_to_buf_dir = {
|
||||
enable = 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")
|
||||
|
||||
-- KEYMAPS
|
||||
vim.keymap.set('n', '<leader>e', nvimtree.toggle)
|
||||
|
|
|
@ -18,9 +18,6 @@ vim.keymap.set('i', '[,', '[<CR>],<C-c>O')
|
|||
-- toggle hybrid mode
|
||||
vim.keymap.set('n', '<leader>h', ':set rnu!<CR>')
|
||||
|
||||
-- nvim-tree.lua
|
||||
vim.keymap.set('n', '<leader>e', ':NvimTreeToggle<CR>')
|
||||
|
||||
-- Telescope
|
||||
vim.keymap.set('n', '<C-y>', '<cmd>Telescope buffers<CR>')
|
||||
vim.keymap.set('n', '<leader>f', '<cmd>Telescope find_files<CR>')
|
||||
|
|
Loading…
Add table
Reference in a new issue