Skip to content

Map ctrl-e to default scroll action? #2660

Answered by alex-courtis
brucejxz asked this question in Q&A
Discussion options

You must be logged in to vote

See :help nvim-tree-mappings example:

  local function my_on_attach(bufnr)
    ---

    -- OR use all default mappings
    api.config.mappings.default_on_attach(bufnr)

    -- remove a default
    vim.keymap.del('n', '<C-]>', { buffer = bufnr })

    ---
  end

  require("nvim-tree").setup({
    ---
    on_attach = my_on_attach,
    ---
  })

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@brucejxz
Comment options

@alex-courtis
Comment options

Answer selected by brucejxz
@gegoune
Comment options

@brucejxz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants