From 69bb89184f9297f1377f77a8b6bee2487df6ac00 Mon Sep 17 00:00:00 2001 From: Iordanis Petkakis Date: Sun, 16 Jul 2023 09:41:45 +0300 Subject: [PATCH] =?UTF-8?q?feat(neo-tree):=20update=20to=20v3.x=20and=20ch?= =?UTF-8?q?ange=20`follow=5Fcurrent=5Ffile`=20to=20a=20=E2=80=A6=20(#1143)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(neo-tree): update to v3.x and change `follow_current_file` to a table and enable it * fix(neo-tree): remove nerd font v3 icons * fix(neo-tree): remove legaccy commands --------- Co-authored-by: Folke Lemaitre --- lua/lazyvim/plugins/editor.lua | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 6febf814..6d8db3ec 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -5,6 +5,7 @@ return { -- file explorer { "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", cmd = "Neotree", keys = { { @@ -28,7 +29,6 @@ return { vim.cmd([[Neotree close]]) end, init = function() - vim.g.neo_tree_remove_legacy_commands = 1 if vim.fn.argc() == 1 then local stat = vim.loop.fs_stat(vim.fn.argv(0)) if stat and stat.type == "directory" then @@ -41,7 +41,7 @@ return { open_files_do_not_replace_types = { "terminal", "Trouble", "qf", "Outline" }, filesystem = { bind_to_cwd = false, - follow_current_file = true, + follow_current_file = { enabled = true }, use_libuv_file_watcher = true, }, window = { @@ -56,16 +56,6 @@ return { expander_expanded = "", expander_highlight = "NeoTreeExpander", }, - icon = { - folder_empty = "󰜌", - folder_empty_open = "󰜌", - }, - git_status = { - symbols = { - renamed = "󰁕", - unstaged = "󰄱", - }, - }, }, }, config = function(_, opts)