1
0
Fork 0

nvim: add nvim-tree

This commit is contained in:
tastytea 2022-08-16 21:38:31 +02:00
parent 7b43d88c88
commit 82575e320d
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
4 changed files with 22 additions and 3 deletions

View File

@ -35,7 +35,6 @@ require('Comment').setup({
}
end
})
map('i', '<M-c>', '<Leader>cA', 'Add comment at eol')
local neogit = require('neogit')
neogit.setup {

View File

@ -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')

View File

@ -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 {

View File

@ -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')