Skip to content

ask: How to run twilight in lazy?Β #38

@tendertree

Description

@tendertree

Did you check docs and existing issues?

  • I have read all the twilight.nvim docs
  • I have searched the existing issues of twilight.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.9.5

Operating system/version

archlinux(wsl2)

Describe the bug

screen

I try to use twilight in lazy.
So I configured my lazy plugin config to add key option to call the Twlight

my expectation twilihgt not loaded until I press the T
but when I press the T

it say Not an editor command :Twilight

is there a way to load correctly ?

or should I use Event ?
I

Steps To Reproduce

  1. add key option in tiwlihgt.nvim in lazy config
  2. press key to call : Twilight

Expected Behavior

lazy load work when I press T key which I set the lazy config

Repro

{
		"folke/twilight.nvim",
		config = function()
			require("twilight").setup {}
		end,
		dependencies = {
			{
				{
					"folke/zen-mode.nvim",
					config = function()
						require("zen-mode").setup {}
					end
				},
			}
		},
		keys = {
			{ 'T', ":Twilight<CR>", noremap = true, silent = true, }
		}
	},

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions