| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- -- return {
- -- "nvim-tree/nvim-tree.lua",
- -- config = function()
- -- require("nvim-tree").setup({
- -- sort = {
- -- sorter = "case_sensitive",
- -- },
- -- view = {
- -- width = 30,
- -- },
- -- renderer = {
- -- group_empty = true,
- -- },
- -- filters = {
- -- dotfiles = true,
- -- },
- -- })
- -- end,
- -- }
- return {
- {
- "nvim-neo-tree/neo-tree.nvim",
- branch = "v3.x",
- dependencies = {
- "nvim-lua/plenary.nvim",
- "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
- "MunifTanjim/nui.nvim",
- -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
- },
- opts = {
- open_files_do_not_replace_types = { "terminal", "Trouble", "qf", "edgy" },
- },
- config = function()
- require("lualine").setup({
- extensions = { "neo-tree", "lazy", "mason" },
- })
- vim.fn.sign_define("DiagnosticSignError", { text = " ", texthl = "DiagnosticSignError" })
- vim.fn.sign_define("DiagnosticSignWarn", { text = " ", texthl = "DiagnosticSignWarn" })
- vim.fn.sign_define("DiagnosticSignInfo", { text = " ", texthl = "DiagnosticSignInfo" })
- vim.fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint" })
- require("neo-tree").setup({
- close_if_last_window = true,
- })
- end,
- },
- }
|