Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 509 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 509 Bytes

Indent Insert

This plugin aims to change the default insert i behavior when the line is empty to cc or S

Install

You can use your favorite plugin manager

use 'pedro757/indentInsert'
Plug 'pedro757/indentInsert'

Configuration

In your init.lua:

Indent = require'indentInsert'.indent
-- Insert mode
vim.api.nvim_set_keymap('n', 'i', 'v:lua.Indent('i')', {expr = true})
-- Append mode
vim.api.nvim_set_keymap('n', 'a', 'v:lua.Indent("a")', {expr = true})