add nvimtree
This commit is contained in:
parent
33f4ce88ef
commit
87ce55295b
3 changed files with 28 additions and 5 deletions
|
@ -56,6 +56,11 @@ vim.api.nvim_set_option("splitright",true)
|
||||||
-- disable Netrw-Banner
|
-- disable Netrw-Banner
|
||||||
vim.g.netrw_banner = 0
|
vim.g.netrw_banner = 0
|
||||||
|
|
||||||
|
-- disable Netrw for Filetree Plugin
|
||||||
|
vim.g.loaded_netrw = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
|
||||||
|
|
||||||
-- undotree file management
|
-- undotree file management
|
||||||
vim.opt.swapfile = false
|
vim.opt.swapfile = false
|
||||||
vim.opt.backup = false
|
vim.opt.backup = false
|
||||||
|
|
|
@ -60,16 +60,16 @@ return {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
outline = {
|
outline = {
|
||||||
win_position = 'left',
|
win_position = 'right',
|
||||||
win_width = 47,
|
win_width = 32,
|
||||||
auto_preview = false,
|
auto_preview = true,
|
||||||
},
|
},
|
||||||
lightbulb = {
|
lightbulb = {
|
||||||
enable = false
|
enable = false
|
||||||
},
|
},
|
||||||
ui = {
|
ui = {
|
||||||
code_action = '',
|
code_action = '',
|
||||||
title = false,
|
title = true,
|
||||||
border = 'rounded',
|
border = 'rounded',
|
||||||
},
|
},
|
||||||
rename = {
|
rename = {
|
||||||
|
@ -94,7 +94,7 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
diagnostic = {
|
diagnostic = {
|
||||||
border_follow = false,
|
border_follow = true,
|
||||||
extend_relatedInformation = true,
|
extend_relatedInformation = true,
|
||||||
keys = {
|
keys = {
|
||||||
quit = { '<Esc>', 'q' },
|
quit = { '<Esc>', 'q' },
|
||||||
|
|
18
lua/plugin/nvimtree.lua
Normal file
18
lua/plugin/nvimtree.lua
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
return {
|
||||||
|
"nvim-tree/nvim-tree.lua",
|
||||||
|
version = "*",
|
||||||
|
lazy = false,
|
||||||
|
dependencies = {
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ "<leader>F", "<cmd>NvimTreeToggle<cr>", desc = "Toggle Filetree" },
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("nvim-tree").setup({
|
||||||
|
view = {
|
||||||
|
width = 42,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue