vim: fix tabular
configuration via packer
This commit is contained in:
parent
e43563fdf3
commit
bb59168c52
1 changed files with 7 additions and 0 deletions
|
@ -136,6 +136,13 @@ return packer().startup(function(use)
|
||||||
use {
|
use {
|
||||||
'godlygeek/tabular',
|
'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()
|
config = function()
|
||||||
vim.cmd [[AddTabularPattern first_comma /^[^,]*\zs,/l0c1l0]]
|
vim.cmd [[AddTabularPattern first_comma /^[^,]*\zs,/l0c1l0]]
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Add table
Reference in a new issue