mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 17:28:50 +02:00
fix: nvim tree git ignore hide file
This commit is contained in:
parent
ad9f646417
commit
e2afd37cae
4 changed files with 148 additions and 57 deletions
|
@ -25,7 +25,8 @@ return {
|
|||
local notify = require("notify")
|
||||
-- this for transparency
|
||||
-- notify.setup { background_colour = "#000000", render = "compact" }
|
||||
notify.setup({ render = "compact" })
|
||||
-- notify.setup({ render = "compact" })
|
||||
notify.setup({ render = "wrapped-compact" })
|
||||
-- this overwrites the vim notify function
|
||||
vim.notify = notify.notify
|
||||
end,
|
||||
|
|
|
@ -220,7 +220,7 @@ return {
|
|||
end,
|
||||
}
|
||||
]]
|
||||
|
||||
|
||||
return {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
cmd = { "NvimTreeFindFileToggle", "NvimTree", "NvimTreeOpen", "NvimTreeToggle", "NvimTreeFocus", "NvimTreeClose" },
|
||||
|
@ -230,7 +230,6 @@ return {
|
|||
opts = function()
|
||||
local icons = pcode.icons
|
||||
return {
|
||||
filters = { dotfiles = false },
|
||||
disable_netrw = true,
|
||||
hijack_cursor = true,
|
||||
sync_root_with_cwd = true,
|
||||
|
@ -304,6 +303,18 @@ return {
|
|||
".prettierignore",
|
||||
},
|
||||
},
|
||||
notify = {
|
||||
threshold = vim.log.levels.INFO,
|
||||
-- threshold = vim.log.levels.ERROR,
|
||||
},
|
||||
git = {
|
||||
enable = true,
|
||||
ignore = false,
|
||||
show_on_dirs = true,
|
||||
show_on_open_dirs = true,
|
||||
disable_for_dirs = {},
|
||||
timeout = 400,
|
||||
},
|
||||
}
|
||||
end,
|
||||
config = function(_, opts)
|
||||
|
@ -313,4 +324,4 @@ return {
|
|||
vim.cmd("edit " .. file.fname)
|
||||
end)
|
||||
end,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue