mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +02:00
feat(neo-tree): use util.get_root when opening neo-tree
This commit is contained in:
parent
fd47b5d5f0
commit
c525020c67
1 changed files with 9 additions and 1 deletions
|
@ -6,7 +6,15 @@ return {
|
||||||
{
|
{
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
cmd = "Neotree",
|
cmd = "Neotree",
|
||||||
keys = { { "<leader>ft", "<cmd>Neotree toggle<cr>", desc = "NeoTree" } },
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>ft",
|
||||||
|
function()
|
||||||
|
require("neo-tree.command").execute({ toggle = true, dir = require("lazyvim.util").get_root() })
|
||||||
|
end,
|
||||||
|
desc = "NeoTree",
|
||||||
|
},
|
||||||
|
},
|
||||||
config = {
|
config = {
|
||||||
filesystem = {
|
filesystem = {
|
||||||
follow_current_file = true,
|
follow_current_file = true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue