nvim: add nvim-tree
This commit is contained in:
parent
7b43d88c88
commit
82575e320d
|
@ -35,7 +35,6 @@ require('Comment').setup({
|
|||
}
|
||||
end
|
||||
})
|
||||
map('i', '<M-c>', '<Leader>cA', 'Add comment at eol')
|
||||
|
||||
local neogit = require('neogit')
|
||||
neogit.setup {
|
||||
|
|
|
@ -79,8 +79,6 @@ for _, key in ipairs({ 'Left', 'Up', 'Down', 'Right' }) do
|
|||
map({ 'v' }, format('<S-%s>', key), format('<%s>', key))
|
||||
end
|
||||
|
||||
map('n', '<F9>', ':Lexplore 20<cr>', 'Open file explorer')
|
||||
map('i', '<F9>', '<Esc>:Lexplore 20<cr>', 'Open file explorer')
|
||||
map('n', '<M-.>', '<C-]>') -- follow symbol
|
||||
map('n', '<M-,>', '<C-T>') -- go back to previous pos
|
||||
map('v', '<Leader>f', 'gq', 'Reformat text')
|
||||
|
|
|
@ -78,6 +78,10 @@ require('packer').startup(function(use)
|
|||
'https://github.com/nvim-telescope/telescope.nvim'
|
||||
}
|
||||
}
|
||||
use {
|
||||
'https://github.com/kyazdani42/nvim-tree.lua',
|
||||
tag = '*'
|
||||
}
|
||||
|
||||
-- coding
|
||||
use {
|
||||
|
|
|
@ -37,3 +37,21 @@ map('n', '<Leader>tg', function()
|
|||
end, 'Live-grep')
|
||||
map('n', '<Leader>tm', builtin.man_pages, 'Man pages')
|
||||
map('n', '<Leader>tr', builtin.registers, 'Register')
|
||||
|
||||
require("nvim-tree").setup({
|
||||
filters = {
|
||||
dotfiles = true
|
||||
},
|
||||
renderer = {
|
||||
icons = {
|
||||
show = {
|
||||
file = false,
|
||||
folder = false,
|
||||
folder_arrow = false,
|
||||
git = false
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
map('n', '<F9>', require("nvim-tree.api").tree.toggle, 'Open nvim-tree')
|
||||
map('i', '<F9>', require("nvim-tree.api").tree.toggle, 'Open nvim-tree')
|
||||
|
|
Loading…
Reference in New Issue