GithubHelp home page GithubHelp logo

superappkid / modes.nvim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mvllow/modes.nvim

1.0 0.0 0.0 69 KB

Prismatic line decorations for the adventurous vim user

Lua 93.89% Makefile 3.47% Vim Script 2.64%

modes.nvim's Introduction

modes.nvim

Prismatic line decorations for the adventurous vim user

Usage

use({
	'mvllow/modes.nvim',
	tag = 'v0.2.0',
	config = function()
		require('modes').setup()
	end
})

modes.nvim

Options

require('modes').setup({
	colors = {
		bg = "", -- Optional bg param, defaults to Normal hl group
		copy = "#f5c359",
		delete = "#c75c6a",
		insert = "#78ccc5",
		visual = "#9745be",
	},

	-- Set opacity for cursorline and number background
	line_opacity = 0.15,

	-- Enable cursor highlights
	set_cursor = true,

	-- Enable cursorline initially, and disable cursorline for inactive windows
	-- or ignored filetypes
	set_cursorline = true,

	-- Enable line number highlights to match cursorline
	set_number = true,

	-- Disable modes highlights in specified filetypes
	-- Please PR commonly ignored filetypes
	ignore_filetypes = { 'NvimTree', 'TelescopePrompt' }
})

Themes

Highlight group Default value
ModesCopy guibg=#f5c359
ModesDelete guibg=#c75c6a
ModesInsert guibg=#78ccc5
ModesVisual guibg=#9745be

Known issues

  • Some Which Key presets conflict with this plugin. For example, d and y operators will not apply highlights if there are d and y prefixes hooked by Which Key because Which Key takes priority

Workaround:

require('which-key').setup({
        triggers_blacklist = {
                n = { "d", "y" }
        }
})

modes.nvim's People

Contributors

adriankarlen avatar fitrh avatar hinell avatar miloas avatar mvllow avatar pricehiller avatar superappkid avatar theblob42 avatar zahimeen avatar

Stargazers

 avatar

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.