Comments (1)
Found a solution on my own π
Here is an example of what i've done if anyone is interested
fmt = function(name, context)
if vim.bo.filetype == 'TelescopePrompt' then
return 'πSearching...'
elseif vim.startswith(name, 'fugitive:') then
return 'ο'
elseif vim.startswith(name, 'Merginal:branchlist') then
return 'ξ₯ Branches'
elseif vim.endswith(name, '--graph --all') then
return 'ξ₯ GV'
elseif vim.bo.filetype == 'qf' then
return 'σ°¨ quickfix'
elseif vim.bo.filetype == 'oil' then
return 'π Files'
elseif vim.bo.filetype == 'octo' then
return 'ο Pull Request'
elseif vim.bo.filetype == 'octo_panel' then
return 'ο PR Review'
elseif vim.bo.filetype == 'vim-plug' then
return '𧩠Vim Plug'
elseif name == '[No Name]' then
return 'π New file'
elseif name == vim.fn.expand('%:t') then
return 'σ°© ' .. context.tabnr
end
return 'σ°© ' .. name
end
from lualine.nvim.
Related Issues (20)
- Bug: on_click option not working in components 'buffers' and 'tabs'
- Feat: Ability to use extensions in winbars and tabline
- Question how to not override DAP UI control buttons? HOT 6
- Bug: Invalid window ID HOT 9
- Bug: evil_lualine little padding...
- Bug: fugitive extension sets statusline but not tabline
- Bug: globalstatus attribute display error
- Bug: Git diff doesn't work if file name contains spaces
- Feat: Optimize counting of diagnostics with new `vim.diagnostic.count()` (nvim 0.10+)
- Bug: quickfix extension crashes on %
- Bug: Lualine configurations are not applied HOT 2
- Bug: Hitting <C-l> does not immediately clear results from searchcount component
- Bug: q! is very slowly
- Bug: fugitive file is same as normal file if path=0
- Bug: Filetype icon for terminal acting weird HOT 4
- Feat: branch to show string instead of disabling
- Feat: statusline showing a straight line
- Bug: color abnormal after source init.vim file HOT 2
- Bug: Extensions are not working
- Feat:Add terminal mode
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 lualine.nvim.