file_tree.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. -- return {
  2. -- "nvim-tree/nvim-tree.lua",
  3. -- config = function()
  4. -- require("nvim-tree").setup({
  5. -- sort = {
  6. -- sorter = "case_sensitive",
  7. -- },
  8. -- view = {
  9. -- width = 30,
  10. -- },
  11. -- renderer = {
  12. -- group_empty = true,
  13. -- },
  14. -- filters = {
  15. -- dotfiles = true,
  16. -- },
  17. -- })
  18. -- end,
  19. -- }
  20. return {
  21. {
  22. "nvim-neo-tree/neo-tree.nvim",
  23. branch = "v3.x",
  24. dependencies = {
  25. "nvim-lua/plenary.nvim",
  26. "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
  27. "MunifTanjim/nui.nvim",
  28. -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
  29. },
  30. opts = {
  31. open_files_do_not_replace_types = { "terminal", "Trouble", "qf", "edgy" },
  32. },
  33. config = function()
  34. require("lualine").setup({
  35. extensions = { "neo-tree", "lazy", "mason" },
  36. })
  37. vim.fn.sign_define("DiagnosticSignError", { text = " ", texthl = "DiagnosticSignError" })
  38. vim.fn.sign_define("DiagnosticSignWarn", { text = " ", texthl = "DiagnosticSignWarn" })
  39. vim.fn.sign_define("DiagnosticSignInfo", { text = " ", texthl = "DiagnosticSignInfo" })
  40. vim.fn.sign_define("DiagnosticSignHint", { text = "󰌵", texthl = "DiagnosticSignHint" })
  41. require("neo-tree").setup({
  42. close_if_last_window = true,
  43. })
  44. end,
  45. },
  46. }