Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nobody-famous/lima.nvim
Leave Insert Mode Automatically
https://github.com/nobody-famous/lima.nvim
Last synced: about 2 months ago
JSON representation
Leave Insert Mode Automatically
- Host: GitHub
- URL: https://github.com/nobody-famous/lima.nvim
- Owner: nobody-famous
- License: mit
- Created: 2024-02-06T01:50:34.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-07T03:43:34.000Z (11 months ago)
- Last Synced: 2024-08-02T18:36:56.613Z (5 months ago)
- Language: Lua
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-neovim-pluginlist - nobody-famous/lima.nvim - famous/lima.nvim) ![](https://img.shields.io/github/last-commit/nobody-famous/lima.nvim) ![](https://img.shields.io/github/commit-activity/y/nobody-famous/lima.nvim) (Editing support / Insert)
README
# 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