NVim-Tree
This commit is contained in:
@@ -104,7 +104,18 @@ return packer.startup(function(use)
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
-- --------------------------------------------------------------
|
-- ----------------------------------------------------
|
||||||
|
-- nvim-tree
|
||||||
|
-- ----------------------------------------------------
|
||||||
|
use {
|
||||||
|
"nvim-tree/nvim-tree.lua",
|
||||||
|
|
||||||
|
config = function()
|
||||||
|
require( "roka.plug.nvim-tree")
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
-- --------------------------------------------------------------
|
||||||
-- autocompletion
|
-- autocompletion
|
||||||
-- --------------------------------------------------------------
|
-- --------------------------------------------------------------
|
||||||
use {
|
use {
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
local setup, nvimtree = pcall( require, "nvim-tree")
|
||||||
|
if not setup then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
-- recommended settings from nvim-tree documentation
|
||||||
|
vim.g.loaded = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
|
||||||
|
vim.cmd( [[ highlight NvimTreeIndentMarker guifg = #3FC5FF ]])
|
||||||
|
|
||||||
|
nvimtree.setup({
|
||||||
|
renderer = {
|
||||||
|
icons = {
|
||||||
|
glyphs = {
|
||||||
|
folder = {
|
||||||
|
arrow_closed = "→",
|
||||||
|
arrow_open = "↓",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- disable window_picker for explorer
|
||||||
|
-- to work well with window splits
|
||||||
|
actions = {
|
||||||
|
open_file = {
|
||||||
|
window_picker = {
|
||||||
|
enable = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
Reference in New Issue
Block a user