kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

chore(init.lua): clarify section comments

Open rez1-dev opened this issue 5 months ago • 2 comments

Now that there is section 2 for keymaps. It doesn't need to be in section 1.

Two more things:

  • You have an autocommand under keymaps.
  • Keeping comments like -- [[ Basic Keymaps ]] feels a bit redundant. I know you are keeping parity with kickstart-modular.nvim

rez1-dev avatar Jun 12 '26 08:06 rez1-dev

oops, you are totally right :)

about the other things:

You have an autocommand under keymaps.

I agree this is not the best, but I couldn't think of a section that fits better. Any suggestions?

Keeping comments like -- [[ Basic Keymaps ]] feels a bit redundant. I still find them useful even if they are repeating the section headers sometimes, because most sections contain multiple "sub sections" - which those comments help separate.

oriori1703 avatar Jun 13 '26 20:06 oriori1703

Keymaps and autocommands aren't closely related. For a starter guide like Kickstart, users should be able to differentiate between what they trigger and what Neovim triggers automatically.

I prefer autocmd to be a new chapter.

-- SECTION 2: KEYMAPS
-- SECTION 3: AUTOCMDS

or you could keep it like before.

-- SECTION 2: KEYMAPS & AUTOCMDS

rez1-dev avatar Jun 13 '26 21:06 rez1-dev