summaryrefslogtreecommitdiff
path: root/lua/config/.neo-tree.default.lua
blob: 03e5b23e8c978c33fd7128cb3efccdab502c63cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
local _ = {
    -- If a user has a sources list it will replace this one.
    -- Only sources listed here will be loaded.
    -- You can also add an external source by adding it's name to this list.
    -- The name used here must be the same name you would use in a require() call.
    sources = {
        "filesystem",
        "buffers",
        "git_status",
        -- "document_symbols",
    },
    add_blank_line_at_top = false, -- Add a blank line at the top of the tree.
    auto_clean_after_session_restore = false, -- Automatically clean up broken neo-tree buffers saved in sessions
    close_if_last_window = false, -- Close Neo-tree if it is the last window left in the tab
    -- popup_border_style is for input and confirmation dialogs.
    -- Configurtaion of floating window is done in the individual source sections.
    -- "NC" is a special style that works well with NormalNC set
    close_floats_on_escape_key = true,
    default_source = "filesystem",
    enable_diagnostics = true,
    enable_git_status = true,
    enable_modified_markers = true, -- Show markers for files with unsaved changes.
    enable_opened_markers = true,   -- Enable tracking of opened files. Required for `components.name.highlight_opened_files`
    enable_refresh_on_write = true, -- Refresh the tree when a file is written. Only used if `use_libuv_file_watcher` is false.
    git_status_async = true,
    -- These options are for people with VERY large git repos
    git_status_async_options = {
        batch_size = 1000, -- how many lines of git status results to process at a time
        batch_delay = 10,  -- delay in ms between batches. Spreads out the workload to let other processes run.
        max_lines = 10000, -- How many lines of git status results to process. Anything after this will be dropped.
        -- Anything before this will be used. The last items to be processed are the untracked files.
    },
    hide_root_node = false, -- Hide the root node.
    retain_hidden_root_indent = false, -- IF the root node is hidden, keep the indentation anyhow. 
    -- This is needed if you use expanders because they render in the indent.
    log_level = "info", -- "trace", "debug", "info", "warn", "error", "fatal"
    log_to_file = false, -- true, false, "/path/to/file.log", use :NeoTreeLogs to show the file
    open_files_in_last_window = true, -- false = open files in top left window
    open_files_do_not_replace_types = { "terminal", "trouble", "qf" }, -- when opening files, do not use windows containing these filetypes or buftypes
    popup_border_style = "NC", -- "double", "none", "rounded", "shadow", "single" or "solid"
    resize_timer_interval = 500, -- in ms, needed for containers to redraw right aligned and faded content
    -- set to -1 to disable the resize timer entirely
    --                           -- NOTE: this will speed up to 50 ms for 1 second following a resize
    sort_case_insensitive = false, -- used when sorting files and directories in the tree
    sort_function = nil , -- uses a custom function for sorting files and directories in the tree
    use_popups_for_input = true, -- If false, inputs will use vim.ui.input() instead of custom floats.
    use_default_mappings = true,
    -- source_selector provides clickable tabs to switch between sources.
    source_selector = {
        winbar = false, -- toggle to show selector on winbar
        statusline = false, -- toggle to show selector on statusline
        show_scrolled_off_parent_node = false, -- this will replace the tabs with the parent path
        -- of the top visible node when scrolled down.
        sources = {
            { source = "filesystem" },
            { source = "buffers" },
            { source = "git_status" },
        },
        content_layout = "start", -- only with `tabs_layout` = "equal", "focus"
        --                start  : |/ 裡 bufname     \/...
        --                end    : |/     裡 bufname \/...
        --                center : |/   裡 bufname   \/...
        tabs_layout = "equal", -- start, end, center, equal, focus
        --             start  : |/  a  \/  b  \/  c  \            |
        --             end    : |            /  a  \/  b  \/  c  \|
        --             center : |      /  a  \/  b  \/  c  \      |
        --             equal  : |/    a    \/    b    \/    c    \|
        --             active : |/  focused tab    \/  b  \/  c  \|
        truncation_character = "…", -- character to use when truncating the tab label
        tabs_min_width = nil, -- nil | int: if int padding is added based on `content_layout`
        tabs_max_width = nil, -- this will truncate text even if `text_trunc_to_fit = false`
        padding = 0, -- can be int or table
        -- padding = { left = 2, right = 0 },
        -- separator = "▕", -- can be string or table, see below
        separator = { left = "▏", right= "▕" },
        -- separator = { left = "/", right = "\\", override = nil },     -- |/  a  \/  b  \/  c  \...
        -- separator = { left = "/", right = "\\", override = "right" }, -- |/  a  \  b  \  c  \...
        -- separator = { left = "/", right = "\\", override = "left" },  -- |/  a  /  b  /  c  /...
        -- separator = { left = "/", right = "\\", override = "active" },-- |/  a  / b:active \  c  \...
        -- separator = "|",                                              -- ||  a  |  b  |  c  |...
        separator_active = nil, -- set separators around the active tab. nil falls back to `source_selector.separator`
        show_separator_on_edge = false,
        --                       true  : |/    a    \/    b    \/    c    \|
        --                       false : |     a    \/    b    \/    c     |
        highlight_tab = "NeoTreeTabInactive",
        highlight_tab_active = "NeoTreeTabActive",
        highlight_background = "NeoTreeTabInactive",
        highlight_separator = "NeoTreeTabSeparatorInactive",
        highlight_separator_active = "NeoTreeTabSeparatorActive",
    },
    --
    --event_handlers = {
    --  {
    --    event = "before_render",
    --    handler = function (state)
    --      -- add something to the state that can be used by custom components
    --    end
    --  },
    --  {
    --    event = "file_opened",
    --    handler = function(file_path)
    --      --auto close
    --      require("neo-tree").close_all()
    --    end
    --  },
    --  {
    --    event = "file_opened",
    --    handler = function(file_path)
    --      --clear search after opening a file
    --      require("neo-tree.sources.filesystem").reset_search()
    --    end
    --  },
    --  {
    --    event = "file_renamed",
    --    handler = function(args)
    --      -- fix references to file
    --      print(args.source, " renamed to ", args.destination)
    --    end
    --  },
    --  {
    --    event = "file_moved",
    --    handler = function(args)
    --      -- fix references to file
    --      print(args.source, " moved to ", args.destination)
    --    end
    --  },
    --  {
    --    event = "neo_tree_buffer_enter",
    --    handler = function()
    --      vim.cmd 'highlight! Cursor blend=100'
    --    end
    --  },
    --  {
    --    event = "neo_tree_buffer_leave",
    --    handler = function()
    --      vim.cmd 'highlight! Cursor guibg=#5f87af blend=0'
    --    end
    --  },
    -- {
    --   event = "neo_tree_window_before_open",
    --   handler = function(args)
    --     print("neo_tree_window_before_open", vim.inspect(args))
    --   end
    -- },
    -- {
    --   event = "neo_tree_window_after_open",
    --   handler = function(args)
    --     vim.cmd("wincmd =")
    --   end
    -- },
    -- {
    --   event = "neo_tree_window_before_close",
    --   handler = function(args)
    --     print("neo_tree_window_before_close", vim.inspect(args))
    --   end
    -- },
    -- {
    --   event = "neo_tree_window_after_close",
    --   handler = function(args)
    --     vim.cmd("wincmd =")
    --   end
    -- }
    --},
    default_component_configs = {
        container = {
            enable_character_fade = true,
            width = "100%",
            right_padding = 0,
        },
        --diagnostics = {
        --  symbols = {
        --    hint = "H",
        --    info = "I",
        --    warn = "!",
        --    error = "X",
        --  },
        --  highlights = {
        --    hint = "DiagnosticSignHint",
        --    info = "DiagnosticSignInfo",
        --    warn = "DiagnosticSignWarn",
        --    error = "DiagnosticSignError",
        --  },
        --},
        indent = {
            indent_size = 2,
            padding = 1,
            -- indent guides
            with_markers = true,
            indent_marker = "│",
            last_indent_marker = "└",
            highlight = "NeoTreeIndentMarker",
            -- expander config, needed for nesting files
            with_expanders = nil, -- if nil and file nesting is enabled, will enable expanders
            expander_collapsed = "",
            expander_expanded = "",
            expander_highlight = "NeoTreeExpander",
        },
        icon = {
            folder_closed = "",
            folder_open = "",
            folder_empty = "ﰊ",
            folder_empty_open = "ﰊ",
            -- 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",
        },
        name = {
            trailing_slash = false,
            highlight_opened_files = false, -- Requires `enable_opened_markers = true`. 
            -- Take values in { false (no highlight), true (only loaded), 
            -- "all" (both loaded and unloaded)}. For more information,
            -- see the `show_unloaded` config of the `buffers` source.
            use_git_status_colors = true,
            highlight = "NeoTreeFileName",
        },
        git_status = {
            symbols = {
                -- Change type
                added     = "✚", -- NOTE: you can set any of these to an empty string to not show them
                deleted   = "✖",
                modified  = "",
                renamed   = "",
                -- Status type
                untracked = "",
                ignored   = "",
                unstaged  = "",
                staged    = "",
                conflict  = "",
            },
            align = "right",
        },
    },
    renderers = {
        directory = {
            { "indent" },
            { "icon" },
            { "current_filter" },
            {
                "container",
                content = {
                    { "name", zindex = 10 },
                    -- {
                    --   "symlink_target",
                    --   zindex = 10,
                    --   highlight = "NeoTreeSymbolicLinkTarget",
                    -- },
                    { "clipboard", zindex = 10 },
                    { "diagnostics", errors_only = true, zindex = 20, align = "right", hide_when_expanded = true },
                    { "git_status", zindex = 20, align = "right", hide_when_expanded = true },
                },
            },
        },
        file = {
            { "indent" },
            { "icon" },
            {
                "container",
                content = {
                    {
                        "name",
                        zindex = 10
                    },
                    -- {
                    --   "symlink_target",
                    --   zindex = 10,
                    --   highlight = "NeoTreeSymbolicLinkTarget",
                    -- },
                    { "clipboard", zindex = 10 },
                    { "bufnr", zindex = 10 },
                    { "modified", zindex = 20, align = "right" },
                    { "diagnostics",  zindex = 20, align = "right" },
                    { "git_status", zindex = 20, align = "right" },
                },
            },
        },
        message = {
            { "indent", with_markers = false },
            { "name", highlight = "NeoTreeMessage" },
        },
        terminal = {
            { "indent" },
            { "icon" },
            { "name" },
            { "bufnr" }
        }
    },
    nesting_rules = {},
    -- Global custom commands that will be available in all sources (if not overridden in `opts[source_name].commands`)
    --
    -- You can then reference the custom command by adding a mapping to it:
    --    globally    -> `opts.window.mappings`
    --    locally     -> `opt[source_name].window.mappings` to make it source specific.
    --
    -- commands = {              |  window {                 |  filesystem {
    --   hello = function()      |    mappings = {           |    commands = {
    --     print("Hello world")  |      ["<C-c>"] = "hello"  |      hello = function()
    --   end                     |    }                      |        print("Hello world in filesystem")
    -- }                         |  }                        |      end
    --
    -- see `:h neo-tree-global-custom-commands`
    commands = {}, -- A list of functions

    window = { -- see https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/popup for
    -- possible options. These can also be functions that return these options.
    position = "left", -- left, right, top, bottom, float, current
    width = 40, -- applies to left and right positions
    height = 15, -- applies to top and bottom positions
    auto_expand_width = false, -- expand the window when file exceeds the window width. does not work with position = "float"
    popup = { -- settings that apply to float position only
    size = {
        height = "80%",
        width = "50%",
    },
    position = "50%", -- 50% means center it
    -- you can also specify border here, if you want a different setting from
    -- the global popup_border_style.
},
same_level = false, -- Create and paste/move files/directories on the same level as the directory under cursor (as opposed to within the directory under cursor).
insert_as = "child", -- Affects how nodes get inserted into the tree during creation/pasting/moving of files if the node under the cursor is a directory:
-- "child":   Insert nodes as children of the directory under cursor.
-- "sibling": Insert nodes  as siblings of the directory under cursor.
-- Mappings for tree window. See `:h neo-tree-mappings` for a list of built-in commands.
-- You can also create your own commands by providing a function instead of a string.
mapping_options = {
    noremap = true,
    nowait = true,
},
mappings = {
    ["<space>"] = {
        "toggle_node",
        nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
    },
    ["<2-LeftMouse>"] = "open",
    ["<cr>"] = "open",
    ["<esc>"] = "revert_preview",
    ["P"] = { "toggle_preview", config = { use_float = true } },
    ["l"] = "focus_preview",
    ["S"] = "open_split",
    -- ["S"] = "split_with_window_picker",
    ["s"] = "open_vsplit",
    -- ["s"] = "vsplit_with_window_picker",
    ["t"] = "open_tabnew",
    -- ["<cr>"] = "open_drop",
    -- ["t"] = "open_tab_drop",
    ["w"] = "open_with_window_picker",
    ["C"] = "close_node",
    ["z"] = "close_all_nodes",
    --["Z"] = "expand_all_nodes",
    ["R"] = "refresh",
    ["a"] = {
        "add",
        -- some commands may take optional config options, see `:h neo-tree-mappings` for details
        config = {
            show_path = "none", -- "none", "relative", "absolute"
        }
    },
    ["A"] = "add_directory", -- also accepts the config.show_path and config.insert_as options.
    ["d"] = "delete",
    ["r"] = "rename",
    ["y"] = "copy_to_clipboard",
    ["x"] = "cut_to_clipboard",
    ["p"] = "paste_from_clipboard",
    ["c"] = "copy", -- takes text input for destination, also accepts the config.show_path and config.insert_as options
    ["m"] = "move", -- takes text input for destination, also accepts the config.show_path and config.insert_as options
    ["e"] = "toggle_auto_expand_width",
    ["q"] = "close_window",
    ["?"] = "show_help",
    ["<"] = "prev_source",
    [">"] = "next_source",
},
  },
  filesystem = {
      window = {
          mappings = {
              ["H"] = "toggle_hidden",
              ["/"] = "fuzzy_finder",
              ["D"] = "fuzzy_finder_directory",
              --["/"] = "filter_as_you_type", -- this was the default until v1.28
              ["#"] = "fuzzy_sorter", -- fuzzy sorting using the fzy algorithm
              -- ["D"] = "fuzzy_sorter_directory",
              ["f"] = "filter_on_submit",
              ["<C-x>"] = "clear_filter",
              ["<bs>"] = "navigate_up",
              ["."] = "set_root",
              ["[g"] = "prev_git_modified",
              ["]g"] = "next_git_modified",
          },
          fuzzy_finder_mappings = { -- define keymaps for filter popup window in fuzzy_finder_mode
          ["<down>"] = "move_cursor_down",
          ["<C-n>"] = "move_cursor_down",
          ["<up>"] = "move_cursor_up",
          ["<C-p>"] = "move_cursor_up",
      },
  },
  async_directory_scan = "auto", -- "auto"   means refreshes are async, but it's synchronous when called from the Neotree commands.
  -- "always" means directory scans are always async.
  -- "never"  means directory scans are never async.
  scan_mode = "shallow", -- "shallow": Don't scan into directories to detect possible empty directory a priori
  -- "deep": Scan into directories to detect empty or grouped empty directories a priori.
  bind_to_cwd = true, -- true creates a 2-way binding between vim's cwd and neo-tree's root
  cwd_target = {
      sidebar = "tab",   -- sidebar is when position = left or right
      current = "window" -- current is when position = current
  },
  -- The renderer section provides the renderers that will be used to render the tree.
  --   The first level is the node type.
  --   For each node type, you can specify a list of components to render.
  --       Components are rendered in the order they are specified.
  --         The first field in each component is the name of the function to call.
  --         The rest of the fields are passed to the function as the "config" argument.
  filtered_items = {
      visible = false, -- when true, they will just be displayed differently than normal items
      force_visible_in_empty_folder = false, -- when true, hidden files will be shown if the root folder is otherwise empty
      show_hidden_count = true, -- when true, the number of hidden items in each folder will be shown as the last entry
      hide_dotfiles = true,
      hide_gitignored = true,
      hide_hidden = true, -- only works on Windows for hidden files/directories
      hide_by_name = {
          ".DS_Store",
          "thumbs.db"
          --"node_modules",
      },
      hide_by_pattern = { -- uses glob style patterns
      --"*.meta",
      --"*/src/*/tsconfig.json"
  },
  always_show = { -- remains visible even if other settings would normally hide it
  --".gitignored",
      },
      never_show = { -- remains hidden even if visible is toggled to true, this overrides always_show
      --".DS_Store",
      --"thumbs.db"
  },
  never_show_by_pattern = { -- uses glob style patterns
  --".null-ls_*",
      },
  },
  find_by_full_path_words = false,  -- `false` means it only searches the tail of a path.
  -- `true` will change the filter into a full path
  -- search with space as an implicit ".*", so
  -- `fi init`
  -- will match: `./sources/filesystem/init.lua
  --find_command = "fd", -- this is determined automatically, you probably don't need to set it
  --find_args = {  -- you can specify extra args to pass to the find command.
  --  fd = {
      --  "--exclude", ".git",
      --  "--exclude",  "node_modules"
      --  }
      --},
      ---- or use a function instead of list of strings
      --find_args = function(cmd, path, search_term, args)
          --  if cmd ~= "fd" then
          --    return args
          --  end
          --  --maybe you want to force the filter to always include hidden files:
          --  table.insert(args, "--hidden")
          --  -- but no one ever wants to see .git files
          --  table.insert(args, "--exclude")
          --  table.insert(args, ".git")
          --  -- or node_modules
          --  table.insert(args, "--exclude")
          --  table.insert(args, "node_modules")
          --  --here is where it pays to use the function, you can exclude more for
          --  --short search terms, or vary based on the directory
          --  if string.len(search_term) < 4 and path == "/home/cseickel" then
          --    table.insert(args, "--exclude")
          --    table.insert(args, "Library")
          --  end
          --  return args
          --end,
          group_empty_dirs = false, -- when true, empty folders will be grouped together
          search_limit = 50, -- max number of search results when using filters
          follow_current_file = false, -- This will find and focus the file in the active buffer every time
          -- the current file is changed while the tree is open.
          hijack_netrw_behavior = "open_default", -- netrw disabled, opening a directory opens neo-tree
          -- in whatever position is specified in window.position
          -- "open_current",-- netrw disabled, opening a directory opens within the
          -- window like netrw would, regardless of window.position
          -- "disabled",    -- netrw left alone, neo-tree does not handle opening dirs
          use_libuv_file_watcher = false, -- This will use the OS level file watchers to detect changes
          -- instead of relying on nvim autocmd events.
      },
      buffers = {
          bind_to_cwd = true,
          follow_current_file = true, -- This will find and focus the file in the active buffer every time
          -- the current file is changed while the tree is open.
          group_empty_dirs = true,  -- when true, empty directories will be grouped together
          show_unloaded = false,    -- When working with sessions, for example, restored but unfocused buffers
          -- are mark as "unloaded". Turn this on to view these unloaded buffer.
          window = {
              mappings = {
                  ["<bs>"] = "navigate_up",
                  ["."] = "set_root",
                  ["bd"] = "buffer_delete",
              },
          },
      },
      git_status = {
          window = {
              mappings = {
                  ["A"] = "git_add_all",
                  ["gu"] = "git_unstage_file",
                  ["ga"] = "git_add_file",
                  ["gr"] = "git_revert_file",
                  ["gc"] = "git_commit",
                  ["gp"] = "git_push",
                  ["gg"] = "git_commit_and_push",
              },
          },
      },
      document_symbols = {
          follow_cursor = false,
          client_filters = "first",
          renderers = {
              root = {
                  {"indent"},
                  {"icon", default="C" },
                  {"name", zindex = 10},
              },
              symbol = {
                  {"indent", with_expanders = true},
                  {"kind_icon", default="?" },
                  {"container",
                  content = {
                      {"name", zindex = 10},
                      {"kind_name", zindex = 20, align = "right"},
                  }
              }
          },
      },
      window = {
          mappings = {
              ["<cr>"] = "jump_to_symbol",
              ["o"] = "jump_to_symbol",
              ["A"] = "noop", -- also accepts the config.show_path and config.insert_as options.
              ["d"] = "noop",
              ["y"] = "noop",
              ["x"] = "noop",
              ["p"] = "noop",
              ["c"] = "noop",
              ["m"] = "noop",
              ["a"] = "noop",
          },
      },
      custom_kinds = {
          -- define custom kinds here (also remember to add icon and hl group to kinds)
          -- ccls
          -- [252] = 'TypeAlias',
          -- [253] = 'Parameter',
          -- [254] = 'StaticMethod',
          -- [255] = 'Macro',
      },
      kinds = {
          Unknown = { icon = "?", hl = "" },
          Root = { icon = "", hl = "NeoTreeRootName" },
          File = { icon = "", hl = "Tag" },
          Module = { icon = "", hl = "Exception" },
          Namespace = { icon = "", hl = "Include" },
          Package = { icon = "", hl = "Label" },
          Class = { icon = "", hl = "Include" },
          Method = { icon = "", hl = "Function" },
          Property = { icon = "", hl = "@property" },
          Field = { icon = "", hl = "@field" },
          Constructor = { icon = "", hl = "@constructor" },
          Enum = { icon = "了", hl = "@number" },
          Interface = { icon = "", hl = "Type" },
          Function = { icon = "", hl = "Function" },
          Variable = { icon = "", hl = "@variable" },
          Constant = { icon = "", hl = "Constant" },
          String = { icon = "", hl = "String" },
          Number = { icon = "", hl = "Number" },
          Boolean = { icon = "", hl = "Boolean" },
          Array = { icon = "", hl = "Type" },
          Object = { icon = "", hl = "Type" },
          Key = { icon = "", hl = "" },
          Null = { icon = "", hl = "Constant" },
          EnumMember = { icon = "", hl = "Number" },
          Struct = { icon = "", hl = "Type" },
          Event = { icon = "", hl = "Constant" },
          Operator = { icon = "", hl = "Operator" },
          TypeParameter = { icon = "", hl = "Type" },

          -- ccls
          -- TypeAlias = { icon = ' ', hl = 'Type' },
          -- Parameter = { icon = ' ', hl = '@parameter' },
          -- StaticMethod = { icon = 'ﴂ ', hl = 'Function' },
          -- Macro = { icon = ' ', hl = 'Macro' },
      }
  },
  example = {
      renderers = {
          custom = {
              {"indent"},
              {"icon", default="C" },
              {"custom"},
              {"name"}
          }
      },
      window = {
          mappings = {
              ["<cr>"] = "toggle_node",
              ["<C-e>"] = "example_command",
              ["d"] = "show_debug_info",
          },
      },
  },
}