Skip to content

docs: always be insert mode #33

Description

@airtonix

i was using toggle term previously where I had this in my lazy config :

local PluginSpec = {
    -- Terminal
    "akinsho/toggleterm.nvim",
    version = '*',
    config = function()
        
        require("toggleterm").setup({})

        vim.api.nvim_create_autocmd({
            "BufEnter"
        }, {
            pattern = { "term://*toggleterm#*" },
            callback = function()
                vim.cmd("startinsert!")
            end
        })
    end
}

return PluginSpec

this nvim_create_autocmd approach works for nvterm, except i feel like it needs a bit more, like:

  • remain in insert mode after middle click pasting
  • remain in insert mode after hightlighting text in the terminal

Basically I want to be an heretical vim user (may the emporer of man smile upon me) and never leave insert mode when in a terminal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions