@@ -100,6 +100,7 @@ vim.g.have_nerd_font = false
100100
101101-- Make line numbers default
102102vim .opt .number = true
103+ vim .opt .relativenumber = true
103104-- You can also add relative line numbers, to help with jumping.
104105-- Experiment for yourself to see if you like it!
105106-- vim.opt.relativenumber = true
@@ -383,11 +384,14 @@ require('lazy').setup({
383384 -- You can put your default mappings / updates / etc. in here
384385 -- All the info you're looking for is in `:help telescope.setup()`
385386 --
386- -- defaults = {
387- -- mappings = {
388- -- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
389- -- },
390- -- },
387+ defaults = {
388+ file_ignore_patterns = {
389+ ' target' ,
390+ },
391+ -- mappings = {
392+ -- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
393+ -- },
394+ },
391395 -- pickers = {}
392396 extensions = {
393397 [' ui-select' ] = {
@@ -438,6 +442,70 @@ require('lazy').setup({
438442 end ,
439443 },
440444
445+ {
446+ ' nvim-neo-tree/neo-tree.nvim' ,
447+ branch = ' v3.x' ,
448+ dependencies = {
449+ ' nvim-lua/plenary.nvim' ,
450+ ' nvim-tree/nvim-web-devicons' , -- not strictly required, but recommended
451+ ' MunifTanjim/nui.nvim' ,
452+ -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
453+ },
454+ config = function ()
455+ require (' neo-tree' ).setup {
456+ default_component_configs = {
457+ container = {
458+ enable_character_fade = true ,
459+ },
460+ indent = {
461+ indent_size = 2 ,
462+ padding = 1 , -- extra padding on left hand side
463+ -- indent guides
464+ with_markers = true ,
465+ indent_marker = ' │' ,
466+ last_indent_marker = ' └' ,
467+ highlight = ' NeoTreeIndentMarker' ,
468+ -- expander config, needed for nesting files
469+ with_expanders = nil , -- if nil and file nesting is enabled, will enable expanders
470+ expander_collapsed = ' ' ,
471+ expander_expanded = ' ' ,
472+ expander_highlight = ' NeoTreeExpander' ,
473+ },
474+ icon = {
475+ folder_closed = ' ►' ,
476+ folder_open = ' ▼' ,
477+ folder_empty = ' -' ,
478+ -- The next two settings are only a fallback, if you use nvim-web-devicons and configure default icons there
479+ -- then these will never be used.
480+ default = ' *' ,
481+ highlight = ' NeoTreeFileIcon' ,
482+ },
483+ modified = {
484+ symbol = ' [+]' ,
485+ highlight = ' NeoTreeModified' ,
486+ },
487+ git_status = {
488+ symbols = {
489+ -- Change type
490+ added = ' ' , -- or "✚", but this is redundant info if you use git_status_colors on the name
491+ modified = ' ' , -- or "", but this is redundant info if you use git_status_colors on the name
492+ deleted = ' ✖' , -- this can only be used in the git_status source
493+ renamed = ' ' , -- this can only be used in the git_status source
494+ -- Status type
495+ untracked = ' ' ,
496+ ignored = ' ' ,
497+ unstaged = ' ' ,
498+ staged = ' ' ,
499+ conflict = ' ' ,
500+ },
501+ },
502+ },
503+ }
504+
505+ vim .cmd [[ nnoremap \ :Neotree reveal<cr>]]
506+ end ,
507+ },
508+
441509 -- LSP Plugins
442510 {
443511 -- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
@@ -619,7 +687,7 @@ require('lazy').setup({
619687 -- clangd = {},
620688 -- gopls = {},
621689 -- pyright = {},
622- -- rust_analyzer = {},
690+ rust_analyzer = {},
623691 -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
624692 --
625693 -- Some languages (like typescript) have entire language plugins that can be useful:
@@ -849,7 +917,7 @@ require('lazy').setup({
849917 -- Load the colorscheme here.
850918 -- Like many other themes, this one has different styles, and you could load
851919 -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
852- vim .cmd .colorscheme ' tokyonight-night '
920+ vim .cmd .colorscheme ' retrobox '
853921
854922 -- You can configure highlights by doing something like:
855923 vim .cmd .hi ' Comment gui=none'
0 commit comments