Skip to content

Cannot change mappings for a filetype / buffer #749

Description

@pritchett

I am trying to unmap conjures K binding for Lua files, since I would like to rely on the LSP hover functionality, especially since doc-word is not supported for lua.

The documentation states

You can also set `b:` prefixed versions of all configuration values for buffer
local settings that override their global counterparts.

so I tried setting
:let b:conjure#mapping#doc_word = v:false

and vim.b[(buffer number)]]["conjure#mapping#doc_word"] = false

but this appears to not be a valid b: variable name.

There doesn't appear to be any way to change this for a language or specific buffer, only for all conjure global mappings.

I was able to make a workaround by creating an auto command to set the keymap to execute vim.lsp.buf.hover again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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