mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-28 03:44:57 -04:00
opensuse
This commit is contained in:
commit
e25cf3edec
34 changed files with 3718 additions and 0 deletions
46
.config/nvim/lua/config/nvim-tree.lua
Normal file
46
.config/nvim/lua/config/nvim-tree.lua
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
-- require("nvim-tree").setup({
|
||||
-- disable_netrw = true,
|
||||
-- hijack_netrw = true,
|
||||
-- sort_by = "case_sensitive",
|
||||
-- view = {
|
||||
-- adaptive_size = true,
|
||||
-- mappings = {
|
||||
-- list = {
|
||||
-- { key = "u", action = "dir_up" },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- renderer = {
|
||||
-- group_empty = true,
|
||||
-- },
|
||||
-- filters = {
|
||||
-- dotfiles = false,
|
||||
-- },
|
||||
-- })
|
||||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
local ntree = require 'nvim-tree'
|
||||
|
||||
local conf = {
|
||||
disable_netrw = true,
|
||||
hijack_netrw = true,
|
||||
sort_by = "case_sensitive",
|
||||
view = {
|
||||
adaptive_size = true,
|
||||
mappings = {
|
||||
list = {
|
||||
{ key = "u", action = "dir_up" },
|
||||
},
|
||||
},
|
||||
},
|
||||
renderer = {
|
||||
group_empty = true,
|
||||
},
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
},
|
||||
}
|
||||
ntree.setup(conf)
|
||||
end
|
||||
return M
|
||||
Loading…
Reference in a new issue