Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/will-lynas/grapple-line.nvim
A lualine component for grapple.nvim
https://github.com/will-lynas/grapple-line.nvim
neovim neovim-plugin nvim plugin
Last synced: about 23 hours ago
JSON representation
A lualine component for grapple.nvim
- Host: GitHub
- URL: https://github.com/will-lynas/grapple-line.nvim
- Owner: will-lynas
- License: mit
- Created: 2024-07-07T17:45:45.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-23T20:51:48.000Z (3 months ago)
- Last Synced: 2024-08-23T22:07:18.422Z (3 months ago)
- Topics: neovim, neovim-plugin, nvim, plugin
- Language: Lua
- Homepage:
- Size: 27.3 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grapple-line.nvim
A lualine component for `grapple.nvim`
![image](https://github.com/will-lynas/grapple-line.nvim/assets/43895423/d94783c7-dbef-4c91-bc61-00cb1dd2e581)
_Here `grapple-line.nvim` is used on the right of the tabline._## `lazy.nvim` setup
### Minimal
```lua
{
"will-lynas/grapple-line.nvim",
version = "1.x",
dependencies = {
"cbochs/grapple.nvim",
},
}
```### Full
The default values are shown in the `opts` table.
```lua
{
"will-lynas/grapple-line.nvim",
dependencies = {
"cbochs/grapple.nvim",
},
version = "1.x",
opts = {
number_of_files = 4,
colors = {
active = "lualine_a_normal",
inactive = "lualine_a_inactive",
},
-- Accepted values:
-- "unique_filename" shows the filename and parent directories if needed
-- "filename" shows the filename only
mode = "unique_filename",
-- If a tag name is set, use that instead of the filename
show_names = false,
-- Accepted values:
-- "none" - overflowing files are ignored
-- "ellipsis" - if there are overflowing files an ellipsis will be shown
overflow = "none",
-- Files for which the parent directory should always be shown
always_show_parent = {},
},
}
```## Usage
```lua
require("lualine").setup({
tabline = {
lualine_z = { require("grapple-line").lualine },
},
})
```