Comments (5)
I have the same problem with nvim 0.9.5 and lunarvim 1.4-release
I just want to show the 'HelloWorld' folder as the root path
from nvim-tree.lua.
In open_in_new_window()
function in open-file.lua
local fname = utils.escape_special_chars(vim.fn.fnameescape(filename))
will be
local fname = utils.escape_special_chars(vim.fn.fnameescape(vim.fn.fnamemodify(filename, ':.')))
but nvim-tree will change cwd, so open_in_new_window()
function need vim_cmd
parameter
from nvim-tree.lua.
That was discussed in the past, please search other issues but from top of my head it's a noop.
from nvim-tree.lua.
@CcccX2017 you can change the vim/nvim-tree root at startup to match your requirements, see wiki Open At Startup for recipes.
from nvim-tree.lua.
@epheien see #2127 for the feature that will meet your requirements. PRs are always welcome.
Closing as duplicate.
from nvim-tree.lua.
Related Issues (20)
- Float window for full filenames has wrong bg HOT 2
- Floating nvim-tree does not respect config on startup HOT 14
- Right aligned icons HOT 1
- web-devicons default not used HOT 4
- Can't create a file in neovim using nvim-tree.lua(fs_close bad argument #1) HOT 6
- [NvimTree] Could not start the fs_event watcher for path /xxxx/xxxx : ENOSPC HOT 8
- Is it not in the AUR?(Have been solved) HOT 2
- Opening a tree in a new tab messes up local statusline settings HOT 6
- Colors of NvimTree as floating window different as expected (configured) HOT 2
- Unable to open file in new tab HOT 2
- nvim-web-devicons user overrides are clobbered HOT 1
- enable deprecated warnings, minimum neovim version 0.9, harden support for greater versions HOT 3
- Allow nodes to expand until a certain condition is met.
- Diagnostics Disabled flag seems do not work
- `nvim-tree` allows the creation of files over `sshfs`, but they can't be accessed HOT 3
- `nvim-tree` allows the creation of files over `sshfs`, but they can't be accessed HOT 10
- Allow icons to work with any terminal font HOT 1
- Sibling navigation doesn't work with group empty HOT 1
- filesystem_watchers.ignore_dirs and git.disable_for_dirs functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-tree.lua.