This plugin aims to change the default insert i behavior when the line is empty to cc or S
You can use your favorite plugin manager
use 'pedro757/indentInsert'Plug 'pedro757/indentInsert'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})