mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Squashed 'config/nvim/' content from commit 0bd687c
git-subtree-dir: config/nvim git-subtree-split: 0bd687c8b69605fa1c7c88222354158b1c2de2f8
This commit is contained in:
commit
f4858d42a8
36 changed files with 906 additions and 0 deletions
44
lua/plugin/nvimtree.lua
Normal file
44
lua/plugin/nvimtree.lua
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
local tree_cb = require("nvim-tree.config").nvim_tree_callback
|
||||
|
||||
require("nvim-tree").setup {
|
||||
disable_netrw = true,
|
||||
hijack_netrw = true,
|
||||
auto_close = true,
|
||||
auto_open = true,
|
||||
update_cwd = false,
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
icons = {
|
||||
hint = "",
|
||||
info = "",
|
||||
warning = "",
|
||||
error = "",
|
||||
},
|
||||
},
|
||||
filters = {
|
||||
dotfiles = true,
|
||||
custom = { ".git", "node_modules", "__pycache__", "env", ".bin" },
|
||||
},
|
||||
view = {
|
||||
width = 30,
|
||||
side = "left",
|
||||
auto_resize = false,
|
||||
mappings = {
|
||||
custom_only = false,
|
||||
list = {
|
||||
{ key = { "l", "<CR>", "o" }, cb = tree_cb "edit" },
|
||||
{ key = "h", cb = tree_cb "close_node" },
|
||||
{ key = "v", cb = tree_cb "vsplit" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
vim.g.nvim_tree_group_empty = 1
|
||||
vim.g.nvim_tree_indent_markers = 1
|
||||
end
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue