NVim-Tree
This commit is contained in:
@@ -104,6 +104,17 @@ return packer.startup(function(use)
|
||||
end
|
||||
}
|
||||
|
||||
-- ----------------------------------------------------
|
||||
-- nvim-tree
|
||||
-- ----------------------------------------------------
|
||||
use {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
|
||||
config = function()
|
||||
require( "roka.plug.nvim-tree")
|
||||
end
|
||||
}
|
||||
|
||||
-- --------------------------------------------------------------
|
||||
-- autocompletion
|
||||
-- --------------------------------------------------------------
|
||||
|
||||
@@ -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