Skip to content

bug: Leader key does not work on first editor openΒ #207

@rrojan

Description

@rrojan

Did you read the documentation and check existing issues?

Neovim version (nvim -v)

NVIM v0.10.1 Build type: Release LuaJIT 2.1.1713484068

Operating system/version

Ubuntu 24.04.1 LTS

Describe the bug

When i open my editor for the first time, space refuses to work as a leader key. Instead it works as the default space (go one char next) in vim.

I know that neominimap might be responsible for this since if i disable it it starts working like normal again.

Screencast.from.2025-01-01.07-47-36.webm

Steps To Reproduce

  1. Open neovim
  2. Open a code file from neotree or telescope
  3. Press space expecting it to act as leader key
  4. Instead it doesn't trigger leader

Note that opening md files does not trigger this behavior

Expected Behavior

Space should act as a leader key right away!

Health

==============================================================================
neominimap: require("neominimap.health").check()

- OK Neovim version is 0.10 or higher
- OK neominimap: valid config
- TreeSitter integration is enabled
- OK TreeSitter is installed
- OK TreeSitter parsers are installed: ada, agda, angular, apex, arduino, asm, astro, authzed, awk, bash, bass, beancount, bibtex, bicep, bitbake, blueprint, bp, c, c_sharp, cairo, capnp, chatito, circom, clojure, cmake, comment, commonlisp, cooklang, corn, cpon, cpp, css, csv, cuda, cue, cylc, d, dart, desktop, devicetree, dhall, diff, disassembly, djot, dockerfile, dot, doxygen, dtd, earthfile, ebnf, editorconfig, eds, eex, elixir, elm, elsa, elvish, embedded_template, erlang, facility, faust, fennel, fidl, firrtl, fish, foam, forth, fortran, fsh, fsharp, func, fusion, gap, gaptst, gdscript, gdshader, git_config, git_rebase, gitattributes, gitcommit, gitignore, gleam, glimmer, glimmer_javascript, glimmer_typescript, glsl, gn, gnuplot, go, goctl, godot_resource, gomod, gosum, gotmpl, gowork, gpg, graphql, gren, groovy, gstlaunch, hack, hare, haskell, haskell_persistent, hcl, heex, helm, hjson, hlsl, hlsplaylist, hocon, hoon, html, htmldjango, http, hurl, hyprlang, idl, ini, inko, ipkg, ispc, janet_simple, java, javascript, jq, jsdoc, json, json5, jsonc, jsonnet, julia, just, kconfig, kdl, kotlin, koto, kusto, lalrpop, ledger, leo, linkerscript, liquid, liquidsoap, llvm, lua, luadoc, luap, luau, m68k, make, markdown, markdown_inline, matlab, menhir, mermaid, meson, muttrc, nasm, nginx, nickel, nim, nim_format_string, ninja, nix, norg, nqc, nu, objc, objdump, ocaml, ocaml_interface, odin, org, pascal, passwd, pem, perl, php, php_only, phpdoc, pioasm, po, pod, poe_filter, pony, powershell, printf, prisma, problog, prolog, promql, properties, proto, prql, psv, pug, puppet, purescript, pymanifest, python, ql, qmldir, qmljs, query, r, racket, ralph, rasi, rbs, re2c, readline, regex, rego, requirements, rescript, rnoweb, robot, robots, roc, ron, rst, ruby, runescript, rust, scala, scheme, scss, sflog, slang, slint, smali, smithy, snakemake, solidity, soql, sosl, sourcepawn, sparql, sql, squirrel, ssh_config, starlark, strace, styled, supercollider, superhtml, surface, svelte, sway, sxhkdrc, systemtap, t32, tablegen, tact, tcl, templ, terraform, textproto, thrift, tiger, tlaplus, tmux, todotxt, toml, tsv, tsx, turtle, twig, typescript, typespec, typoscript, typst, udev, ungrammar, usd, uxntal, v, vala, vento, verilog, vhdl, vhs, vim, vimdoc, vrl, vue, wgsl, wgsl_bevy, wing, wit, xcompose, xml, xresources, yaml, yang, yuck, zathurarc, zig, ziggy, ziggy_schema
- Gitsigns integration is enabled
- OK Gitsigns is installed

Log

No response

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
    {
        -- Add anything you need here (configuration, other plugins, etc)
        "Isrothy/neominimap.nvim",
    },
})

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