dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

neotree.lua (1070B)


      1 -- lua/plugins/neo-tree.lua
      2 -- $HOME/.config/nvim/lua/linus/plugins/neotree.lua
      3 return {
      4   {
      5     "nvim-neo-tree/neo-tree.nvim",
      6     branch = "v3.x",
      7     cmd = "Neotree",
      8     dependencies = {
      9       "nvim-lua/plenary.nvim",
     10       "nvim-tree/nvim-web-devicons",  -- file icons
     11       "MunifTanjim/nui.nvim",
     12     },
     13     opts = {
     14       filesystem = {
     15         follow_current_file = true,  -- sync tree with open file
     16         use_libuv_file_watcher = true,
     17       },
     18       window = {
     19         position = "float",
     20         width = 40,
     21       },
     22       default_component_configs = {
     23         icon = {
     24           folder_closed = "",
     25           folder_open = "",
     26           folder_empty = "",
     27         },
     28         modified = { symbol = "●" },
     29         git_status = {
     30           symbols = {
     31             added    = "+",  -- new file
     32             modified = "~",  -- modified file
     33             deleted  = "✖",  -- deleted file
     34             renamed  = "➜",
     35             unstaged = "★",
     36           },
     37         },
     38       },
     39     },
     40   },
     41 }
     42 
     43 -- keympas
     44 -- $HOME/.config/nvim/lua/linus/keys.lua