Coder Social home page Coder Social logo

Can't unmap "u" key in status about neogit HOT 5 OPEN

kitallen23 avatar kitallen23 commented on June 26, 2024 3
Can't unmap "u" key in status

from neogit.

Comments (5)

titaniumtraveler avatar titaniumtraveler commented on June 26, 2024 1

I have the same problem and further more remapping ["<c-s>"] = "SplitOpen", doesn't work and results in a similar error:

E5108: Error executing lua: ...hare/nvim/lazy/neogit/lua/neogit/buffers/status/init.lua:146: table index is nil
stack traceback:
        ...hare/nvim/lazy/neogit/lua/neogit/buffers/status/init.lua:146: in function 'open'
        $HOME/.local/share/nvim/lazy/neogit/lua/neogit.lua:120: in function 'open_status_buffer'
        $HOME/.local/share/nvim/lazy/neogit/lua/neogit.lua:192: in function 'open'
        $HOME/.config/nvim/lua/custom/plugins/neogit.lua:33: in function <$HOME/.config/nvim/lua/custom/plugins/neogit.lua:32>

(The stacktrace is slightly different that's why I'm posting it here.)

Here the full mappings.status config (with a few things commented out because
the unmapping doesn't work.)

status = {
  -- ["1"] = false,
  -- ["2"] = false,
  -- ["3"] = false,
  -- ["4"] = false,

  ["<Leader>1"] = "Depth1",
  ["<Leader>2"] = "Depth2",
  ["<Leader>3"] = "Depth3",
  ["<Leader>4"] = "Depth4",

  -- ["<c-x>"] = false,
  ["<c-s>"] = "SplitOpen",
},

from neogit.

CKolkey avatar CKolkey commented on June 26, 2024

For now, you need to remap the function bound to u. Just setting it to false will not work.

from neogit.

kitallen23 avatar kitallen23 commented on June 26, 2024

From memory, I wasn't able to rebind it either. I'll try that when I'm back at my pc later though. However I'm not sure that rebinding it would help in my case?

from neogit.

kitallen23 avatar kitallen23 commented on June 26, 2024

Just tested; you were correct that it seems as though it can be remapped, but it cannot be unmapped. My use case is still broken though (remapping doesn't help in my case).

from neogit.

Aerex avatar Aerex commented on June 26, 2024

I think you will need to remap the action to something similar to what @CKolkey mentioned.

For now, you need to remap the function bound to u. Just setting it to false will not work.

For example,

status = {
      ["<c-s>"] = "SplitOpen",
      ["<c-S>"] = "StageAll"
}

from neogit.

Related Issues (20)

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.