vim: fix tabular configuration via packer

This commit is contained in:
Fernando Schauenburg 2022-10-04 21:51:32 +02:00
parent e43563fdf3
commit bb59168c52

View file

@ -136,6 +136,13 @@ return packer().startup(function(use)
use {
'godlygeek/tabular',
setup = function()
-- This function is intentionally empty. If I don't have a setup()
-- function, somehow packer calls config() BEFORE the plugin is loaded
-- and therefore the command AddTabularPattern still doesn't exist and
-- config() throws errors on nvim startup.
end,
config = function()
vim.cmd [[AddTabularPattern first_comma /^[^,]*\zs,/l0c1l0]]
end,