Giter Site home page Giter Site logo

grapple-line.nvim's Introduction

grapple-line.nvim

A lualine component for grapple.nvim

image Here grapple-line.nvim is used on the right of the tabline.

lazy.nvim setup

Minimal

{
	"will-lynas/grapple-line.nvim",
	version = "1.x",
	dependencies = {
		"cbochs/grapple.nvim",
	},
}

Full

The default values are shown in the opts table.

{
	"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",
	},
}

Usage

require("lualine").setup({
	tabline = {
		lualine_z = { require("grapple-line").status },
	},
})

grapple-line.nvim's People

Contributors

will-lynas avatar colinkennedy avatar

Stargazers

 avatar Smith avatar Jonathan Carter avatar  avatar Johnny M. Salas avatar Hugo Lewenhaupt avatar Andrew Stewart avatar Azzaz Akl avatar Stefan Logue avatar Rizky Ilham Pratama avatar Yuta Katayama avatar Artem Streltsov avatar

Watchers

 avatar

Forkers

colinkennedy

grapple-line.nvim's Issues

Click to go to file

Clicking on a file in the status line should allow you to jump to the file, in the same way that the tab component of lualine lets you.

Use tag names

I use tags to differentiate similar file names. Status should pick the tag name over combo: index + filename

Verify validity of strings in settings

Currently in the settings table, string that should only be able to take values from a set are not verified.

Add a function to check all such strings when the settings table is parsed.

Add optional scrolling

For example if I have 6 files tagged with grapple and I display a maximum of 4, when I switch to file 6 the bar would show

... file3 file4 file5 (file6)

where the brackets represent highlighting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.