.config/nvim/after/plugin/tabular.vim

Thu, 10 Aug 2023 02:32:37 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 10 Aug 2023 02:32:37 -0500
changeset 1126
fe77c5eed375
parent 1029
9265f8508e4c
permissions
-rw-r--r--

Add autopairs with cr-only behavior, switch to treesitter-endwise

if exists(':Tabularize')
  AddTabularPattern! first_eq    /^.\{-}\zs=/
  AddTabularPattern! first_arrow /^.\{-}\zs=>/
  AddTabularPattern! first_colon /^.\{-}:\zs/l0l1
  AddTabularPattern! comma       /,\zs/l0l1
  AddTabularPattern! methods     /^.\{-}\zs\(->\|\.\)/l0
endif

mercurial