Skip to content

pedro757/indentInsert.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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})

About

Indent when insert on empty line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages