mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-04 18:14:40 +02:00
updates, everything false by default
This commit is contained in:
parent
758798b6f9
commit
fba5bc3d85
5 changed files with 292 additions and 307 deletions
|
@ -25,7 +25,7 @@ M.config = function()
|
|||
git = 1,
|
||||
folders = 1,
|
||||
files = 1,
|
||||
folder_arrows = 0
|
||||
folder_arrows = 1
|
||||
}
|
||||
|
||||
vim.g.nvim_tree_icons = {
|
||||
|
@ -89,4 +89,17 @@ M.config = function()
|
|||
}
|
||||
end
|
||||
|
||||
local view = require 'nvim-tree.view'
|
||||
|
||||
M.toggle_tree = function()
|
||||
if view.win_open() then
|
||||
require'nvim-tree'.close()
|
||||
require'bufferline.state'.set_offset(0)
|
||||
else
|
||||
require'bufferline.state'.set_offset(31, 'File Explorer')
|
||||
require'nvim-tree'.find_file(true)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue