mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Use nvim-tree as file explorer when we open a folder
netrw plugin needs to be disabled, and nvim-tree needs to be start package. Otherwise, the hijacking won't work, and when we open a folder, it just open a new file with the same name.
This commit is contained in:
parent
f10f688374
commit
2b24d0794e
@ -46,8 +46,8 @@ language en_US.utf-8
|
||||
"{{ Disable loading certain plugins
|
||||
" Whether to load netrw by default, see
|
||||
" https://github.com/bling/dotvim/issues/4
|
||||
" let g:loaded_netrw = 0
|
||||
" let g:loaded_netrwPlugin = 0
|
||||
let g:loaded_netrw = 1
|
||||
let g:loaded_netrwPlugin = 1
|
||||
let g:netrw_liststyle = 3
|
||||
if g:is_win
|
||||
let g:netrw_http_cmd = 'curl --ssl-no-revoke -Lo'
|
||||
|
||||
@ -45,7 +45,7 @@ nvim_tree.setup({
|
||||
height = 30,
|
||||
hide_root_folder = false,
|
||||
side = "left",
|
||||
auto_resize = false,
|
||||
auto_resize = true,
|
||||
mappings = {
|
||||
custom_only = false,
|
||||
list = {},
|
||||
|
||||
@ -359,7 +359,6 @@ require("packer").startup({
|
||||
use {
|
||||
'kyazdani42/nvim-tree.lua',
|
||||
requires = { 'kyazdani42/nvim-web-devicons' },
|
||||
keys = {{'n', '<space>s'}, },
|
||||
config = [[require('config.nvim-tree')]]
|
||||
}
|
||||
end,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user