Skip to content

nobody-famous/lima.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lima.nvim

Leave Insert Mode Automatically

Configuration

Using lazy.nvim,

return {
    'nobody-famous/lima.nvim',

    config = function()
        require('lima').setup({
            delay = 500,
            stay_in_insert = function()
                return require('cmp').core.view:visible() or vim.fn.pumvisible() ~= 0
            end
        })
    end
}

If you're using a different plugin manager, well, you're smart. You'll figure it out.

The setup options is a table with two fields,

  • delay - The number of milliseconds to wait before stopping insert mode

  • stay_in_insert - A function that returns a boolean value

    • true - Do not stop insert mode
    • false - Stop insert mode

About

Leave Insert Mode Automatically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages