Comments (2)
On the topic, does any find the default truncation of path to no more than 3 directories a little bit excessive?
Though I don't think dynamic truncation is possible with lualine at the moment.
from lazyvim.
Not excessive for me, but that's purely personal preference from my part.
You could still just copy the pretty_path
function and make it look like you want.
Or we could add a trunc_level
variable and check if it's, for example, 0, then don't do any truncating. We could also do the truncating based on the trunc_level
. For example, if trunc_level = 5
, then we could just unpack
the parts
table based on the trunc_level
.
But again that begs the question of how a user would like to see it. Would he want to see the first 2 parts of the path, then the ellipses character and the last 3 parts at the end. Or would it be a 1 and 4 split? Or a 3 and 2 split?
This complicates the logic unnecessarily I believe and should be better left to the user to implement a similar function in their personal configuration and use that function in their lualine component to make it look exactly how they like.
from lazyvim.
Related Issues (20)
- bug: Unable to mix Deno and non-Deno files in the same workspace HOT 3
- feature: Toggle conform formatting HOT 8
- feature: use blame.nvim instead of telescope blame HOT 1
- bug: "Fix clangd offset encoding" doesn't work, still "utf-8" in C/C++ buffer HOT 23
- bug: confirming completion triggers rust-analyzer diag HOT 4
- Bufferline not anymore working in LazyVim HOT 13
- feature: configurable lualine path trimming HOT 2
- feature: When a prompt is triggered while typing, the prompt panel appears transparent. Is it possible to add an option to prevent it from becoming transparent? HOT 2
- bug: mason.nvim stopped working HOT 5
- bug: Got unexpected error while installing LazyVim on WSL
- bug: Got unexpected error while installing LazyVim on WSL HOT 4
- feature: Add YAML schema selection functionality to YAML extra HOT 2
- Has the keymap `<leader>uh` been removed? How do I get the Inlay Hints feature? HOT 1
- bug: new fresh install on windows hangs at Treesitter compilation step with zig HOT 4
- bug: neo-tree does not make directory current working directory when I click . on that directory HOT 3
- NeoTree & Telescope open in wrong CWD HOT 12
- LazyVim Profile, maybe something is wrong? HOT 2
- bug: HOT 3
- bug: HOT 2
- feature: Toggle ruby blocks HOT 1
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 lazyvim.