mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-24 09:48:51 +02:00
update
This commit is contained in:
parent
53057daa9f
commit
d6c489f9dc
3 changed files with 80 additions and 3 deletions
76
lua/custom/plugins/neotree.lua
Normal file
76
lua/custom/plugins/neotree.lua
Normal file
|
@ -0,0 +1,76 @@
|
|||
return {
|
||||
-- { "kyazdani42/nvim-tree.lua", enabled = false },
|
||||
-- {
|
||||
-- "nvim-neo-tree/neo-tree.nvim",
|
||||
-- dependencies = { "MunifTanjim/nui.nvim" },
|
||||
-- event = "BufWinEnter",
|
||||
-- cmd = "Neotree",
|
||||
-- keys = {
|
||||
-- {
|
||||
-- "<leader>fE",
|
||||
-- function()
|
||||
-- require("neo-tree.command").execute({ toggle = true, dir = vim.loop.cwd() })
|
||||
-- end,
|
||||
-- desc = "Explorer NeoTree (cwd)",
|
||||
-- },
|
||||
-- { "<leader>n", "<cmd>Neotree toggle<cr>", desc = "Explorer NeoTree (root dir)", remap = true },
|
||||
-- { "<leader>E", "<leader>fE", desc = "Explorer NeoTree (cwd)", remap = true },
|
||||
-- },
|
||||
-- deactivate = function()
|
||||
-- vim.cmd([[Neotree close]])
|
||||
-- end,
|
||||
-- init = function()
|
||||
-- vim.g.neo_tree_remove_legacy_commands = 1
|
||||
-- if vim.fn.argc() == 1 then
|
||||
-- local stat = vim.loop.fs_stat(vim.fn.argv(0))
|
||||
-- if stat and stat.type == "directory" then
|
||||
-- require("neo-tree")
|
||||
-- end
|
||||
-- end
|
||||
-- end,
|
||||
-- opts = {
|
||||
-- filesystem = {
|
||||
-- bind_to_cwd = false,
|
||||
-- follow_current_file = true,
|
||||
-- },
|
||||
-- window = {
|
||||
-- position = "left",
|
||||
-- width = 30,
|
||||
-- mappings = {
|
||||
-- ["<space>"] = "none",
|
||||
-- },
|
||||
-- },
|
||||
-- default_component_configs = {
|
||||
-- icon = {
|
||||
-- folder_closed = "",
|
||||
-- folder_open = "",
|
||||
-- folder_empty = "ﰊ",
|
||||
-- -- The next two settings are only a fallback, if you use nvim-web-devicons and configure default icons there
|
||||
-- -- then these will never be used.
|
||||
-- default = "*",
|
||||
-- highlight = "NeoTreeFileIcon",
|
||||
-- },
|
||||
-- modified = {
|
||||
-- symbol = "[+]",
|
||||
-- highlight = "NeoTreeModified",
|
||||
-- },
|
||||
-- git_status = {
|
||||
-- symbols = {
|
||||
-- -- Change type
|
||||
-- added = "✚", -- or "✚", but this is redundant info if you use git_status_colors on the name
|
||||
-- modified = "", -- or "", but this is redundant info if you use git_status_colors on the name
|
||||
-- deleted = "✖", -- this can only be used in the git_status source
|
||||
-- renamed = "", -- this can only be used in the git_status source
|
||||
-- -- Status type
|
||||
-- untracked = "",
|
||||
-- ignored = "",
|
||||
-- -- unstaged = "",
|
||||
-- unstaged = "",
|
||||
-- staged = "",
|
||||
-- conflict = "",
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue