• Install treesitter plugin
  • Enable the indentation module
  • Install autopairs plugin
  • Install vim-sleuth plugin
  • Set map_cr = true setting for autopairs
  • Set opt.smartindent = true, opt.shiftround = true and possibly other indentation settings like this (tabstop, softtabstop, shiftwidth, textwidth, formatoptions) for neovim
  • Use prettier or other automattic formatter and let it format your code on save with null-ls