feat(neo-tree): update to v3.x and change follow_current_file
to a … (#1143)
* 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 <folke.lemaitre@gmail.com>
This commit is contained in:

committed by
GitHub

parent
0801e52118
commit
69bb89184f
@ -5,6 +5,7 @@ return {
|
|||||||
-- file explorer
|
-- file explorer
|
||||||
{
|
{
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
branch = "v3.x",
|
||||||
cmd = "Neotree",
|
cmd = "Neotree",
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
@ -28,7 +29,6 @@ return {
|
|||||||
vim.cmd([[Neotree close]])
|
vim.cmd([[Neotree close]])
|
||||||
end,
|
end,
|
||||||
init = function()
|
init = function()
|
||||||
vim.g.neo_tree_remove_legacy_commands = 1
|
|
||||||
if vim.fn.argc() == 1 then
|
if vim.fn.argc() == 1 then
|
||||||
local stat = vim.loop.fs_stat(vim.fn.argv(0))
|
local stat = vim.loop.fs_stat(vim.fn.argv(0))
|
||||||
if stat and stat.type == "directory" then
|
if stat and stat.type == "directory" then
|
||||||
@ -41,7 +41,7 @@ return {
|
|||||||
open_files_do_not_replace_types = { "terminal", "Trouble", "qf", "Outline" },
|
open_files_do_not_replace_types = { "terminal", "Trouble", "qf", "Outline" },
|
||||||
filesystem = {
|
filesystem = {
|
||||||
bind_to_cwd = false,
|
bind_to_cwd = false,
|
||||||
follow_current_file = true,
|
follow_current_file = { enabled = true },
|
||||||
use_libuv_file_watcher = true,
|
use_libuv_file_watcher = true,
|
||||||
},
|
},
|
||||||
window = {
|
window = {
|
||||||
@ -56,16 +56,6 @@ return {
|
|||||||
expander_expanded = "",
|
expander_expanded = "",
|
||||||
expander_highlight = "NeoTreeExpander",
|
expander_highlight = "NeoTreeExpander",
|
||||||
},
|
},
|
||||||
icon = {
|
|
||||||
folder_empty = "",
|
|
||||||
folder_empty_open = "",
|
|
||||||
},
|
|
||||||
git_status = {
|
|
||||||
symbols = {
|
|
||||||
renamed = "",
|
|
||||||
unstaged = "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
|
Reference in New Issue
Block a user