Skip to content

How can I force neotree buffer to always be in normal mode #667

Answered by cseickel
airtonix asked this question in Q&A
Discussion options

You must be logged in to vote

This will do it:

      local events = require("neo-tree.events")
      require("neo-tree").setup({
        event_handlers = {
          {
            event = events.NEO_TREE_BUFFER_ENTER,
            handler = function()
              vim.cmd("stopinsert")
            end,
          },
        },
      })

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by airtonix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants